|
-
May 11th, 1999, 12:51 PM
#1
How do I mimic Windows NT Task manager focus behavior?
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".
-
May 11th, 1999, 04:17 PM
#2
Re: How do I mimic Windows NT Task manager focus behavior?
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.
-
May 11th, 1999, 04:35 PM
#3
Re: How do I mimic Windows NT Task manager focus behavior?
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|