Have you tried hooking WM_ACTIVATE (or cm_activate)?
If you trap WM_NCACTIVATE, you can prevent Windows from drawing your caption
is the active colour.
The other thing to try is to trap WM_SETFOCUS and call Windows.SetFocus (0);
This will prevent your window from receiving any keyboard input.
If you want to ignore all mouse input, you can trap the WM_NCHITTEST message
and return HTNOWHERE.
It all depends on what you want to do.
Regards,
Dennis.
> I am going through the messages pas file at the moment.
> There must be some way I can make an application unable
> to receive focus unless I pass a message to it and then
> it comes to life. ???
>
> Anyone have any thoughts as to which messages I should be
> looking to override?
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz