I tried the IsWindowVisible() function but it doesn't seem to be doing anything at all.... always returns non 0 even when I have tons of other windows on top of my app. ??? -Adam
What you mean to ask is "How can i tell if my window is on top?" Indeed, you answered you're own inquiry by your terminology "when i have tons of other windows on top of my app" IsWindowVisible does what it is supposed to do. It tells you whether the window is "visible" or not. If you wish to know just what windows thinks that "invisible" is, then call this function -> ShowWindow(hwnd,SW_HIDE); To find out if your window is "on top" - your definition of visible - then use this if (GetTopWindow(NULL) == hwnd) {}