If only windows were perfect...

This is a discussion on If only windows were perfect... within the Windows Programming forums, part of the Platform Specific Boards category; I have a window that is set with HWND_TOPMOST for its z position. And I want to be able to ...

  1. #1
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685

    If only windows were perfect...

    I have a window that is set with HWND_TOPMOST for its z position. And I want to be able to know when a window bellow it has been grabbed. The problem is that windows isn't sending a WM_CAPTURECHANGE message to my window when the lower windows is grabbed (since it is always lower in the z order). I tried having another thread keep track of the HWND of the window lower than mine and notify me when there is a change in HWND but that doesn't seem to work right. Am I even on the right track here. Is there a function that I don't know about?

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I see no one answered my question, but that is okay because I actually figured it out shortly after I posted. Instead of creating a worker thread that didn't do its job correctly, I set a timer and found that GetForegroundWindow() gets the HWND of the window that has mouse-focus. Instead of the highest z order window.

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    can't you handle the WM_ACTIVATEAPP message for a TOPMOST window? Not sure, just asking. It seems like you should be able to.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 09:05 AM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 06:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 03:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 01:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 06:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21