G
Garry Freemyer
Right now, I have my screensaver calling the IsWindowVisible api call from
user32.dll and it seems that there ought to be a way to determine if the
window is visible another way.
I found that I could test for the EXISTANCE of a window by trying to create
a graphics object from a handle to the preview window, but unlike the api
call, this will report the window as still in existance even if the preview
window is NOT visible to me, because I clicked on another tab.
I would like to eliminate the unmanaged call to this API because I want to
stick with managed code if possible so that I won't be waylaid by any future
possibility that this api call may become unavailable in the future.
user32.dll and it seems that there ought to be a way to determine if the
window is visible another way.
I found that I could test for the EXISTANCE of a window by trying to create
a graphics object from a handle to the preview window, but unlike the api
call, this will report the window as still in existance even if the preview
window is NOT visible to me, because I clicked on another tab.
I would like to eliminate the unmanaged call to this API because I want to
stick with managed code if possible so that I won't be waylaid by any future
possibility that this api call may become unavailable in the future.