View Full Version : How do you determine if a window is hidden?

11-06-2002, 05:00 AM
My question is pretty simple, but I can't find an appropriate answer. Is there a Windows message that is passed to your window if it is completely covered by other windows? If there is no message, then how do you determine if your window is hidden?


11-06-2002, 06:09 AM
the win32 call GetWindowRgn(hWnd,hRgn) gives you the current visible region. if this region is empty (=no visible areas) you'll get NULLREGION as result value.

11-06-2002, 08:46 AM
That looks like it should solve my problem, but it didn't.

Can someone give me example code or functions I need to call before it? Thanks.

11-07-2002, 04:00 AM
I'm sure there is a way to do this, but I can't figure it out. One last bump...