track app activation

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I want to know wether the application is active or not.
I have inspector/tool windows, not attached to a particular window.
and I want to hide/show them wether or not my aplication is active.

I've tried to setup an IMessageFilter listening for:
const int WM_ACTIVATEAPP = 0x001C;

but it's never dispatched! (in the IMessageFilter)

Any other suggestion?

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
 
I don't know why the IMessageFilter doesn't work, but you can trap
WM_ACTIVATEAPP by overriding WndProc in your main form (in fact the help for
Control.WndProc gives an example using WM_ACTIVATEAPP).

Chris Jobson
 
allright, great, thank!

Chris Jobson said:
I don't know why the IMessageFilter doesn't work, but you can trap
WM_ACTIVATEAPP by overriding WndProc in your main form (in fact the help
for Control.WndProc gives an example using WM_ACTIVATEAPP).

Chris Jobson
 
Back
Top