> I have an app where I don't want any mouse events to be 
> registered after a certain point. This includes all onclick 
> events. Is there a way I can intercept all of these for all 
> controls on the form or simply just shut down the mouse for 
> this app.

You could install a mouse hook procedure that gets called whenever a
message you are interested in gets sent.  This will have to be
implemented in a DLL if you want to monitor (and kill) messages destined
for another process.  However I don't believe a DLL is a requirement if
you only want to intercept messages within your own process.

Look up SetWindowsHookEx(WH_MOUSE,...) in the WinAPI help.



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to