Never Losing the Focus
Posted on 2001-07-10
I have an MFC Application.
When the user clicks outside the application (for example on another application's window or on the desktop), I want to reactivate my application's main window.
I screwed around a little with SetForegroundWindow() and the WM_ACTIVATE messages, catching them in WindowProc(), etc., but got no luck. In Windows 2000, the best I can do is to have the application's icon BLINK on the taskbar (I can never have it come to the front).
So... Do I suck or does Windows 2000 suck?
Thanks for your help!