Click to See Complete Forum and Search --> : How do I mimic Windows NT Task manager focus behavior?


LindaC
May 11th, 1999, 12:51 PM
I have one main process (non-MFC), that creates one or several processes (MFC). I would like for these MFC spawned processes to always be visible even though the focus may be on the main process, the same way the Windows NT task manager does not always have to have the focus, yet always displays "on top".

In addition, I would always like all keyboard input to be process by the main non-MFC process, regardless of whether the main or spawned processes are "active".

Kevin Delgado
May 11th, 1999, 04:17 PM
If you whip out your handy-dandy Spy++ and check the window extended styles for Task Manager, you will notice that it has the style bit "WS_EX_TOPMOST". I assume you can use SetWindowPos with this flag to achieve the same effect.

LindaC
May 11th, 1999, 04:35 PM
Thanks, I'll give it a try, it always seems pretty easy when you know the answer. :) I've never used Spy++ before, pretty neat tool, thanks for the lead on that also!