CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    2

    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".




  2. #2
    Join Date
    Apr 1999
    Posts
    20

    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.


  3. #3
    Join Date
    May 1999
    Posts
    2

    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
  •  





Click Here to Expand Forum to Full Width

Featured