PDA

View Full Version : Switch Manager



wagenheimer
25-09-2007, 06:14 PM
How to detect when in TASK MANAGER, the user clicks in "Switch To" in my Application???

I need to detect this! It is no OnRestore, is something else that did happens!

Somebody have some ideia?

Thanks!

User137
25-09-2007, 06:50 PM
Application.Active tells true if your program is the top most.

I'm not sure about the event, could be WM_ACTIVATE for which i googled some kind of help:
http://www.devexpress.com/Support/Center/p/CB49572.aspx

Mirage
26-09-2007, 03:57 AM
WM_ACTIVATE is about a window activation.
WM_ACTIVATEAPP occurs when an application is activated (or deactivated).