William Gabriel
2004-09-16 17:31:12 UTC
Hi All,
I am working on a problem that requires me to know whether or not any
part of a particular window is visible (even if it's like a one pixel
corner). In my misunderstanding, I thought that ::IsWindowVisible
would cover it, but it looks like that call just verifies that the
hWnd actually has a dialog box. I was able to take it a step further
and find out whether or not a window is minimized using
::GetWindowPlacement, but I really need to find out if a window is
visible or not (in other words, not completely covered by higher
z-order windows).
Is there some sort of API call that will determine this, or do I
actually have to trudge through and do the math (not trivial!) to
figure out if the window is visible/hidden?
Any insights, hints or comments are very welcome!
Thanks,
Bill
I am working on a problem that requires me to know whether or not any
part of a particular window is visible (even if it's like a one pixel
corner). In my misunderstanding, I thought that ::IsWindowVisible
would cover it, but it looks like that call just verifies that the
hWnd actually has a dialog box. I was able to take it a step further
and find out whether or not a window is minimized using
::GetWindowPlacement, but I really need to find out if a window is
visible or not (in other words, not completely covered by higher
z-order windows).
Is there some sort of API call that will determine this, or do I
actually have to trudge through and do the math (not trivial!) to
figure out if the window is visible/hidden?
Any insights, hints or comments are very welcome!
Thanks,
Bill