I want to detect from my code whether a given window is visible to the user. I would like a function something like this:
Function IsViewable( Awindow : HWND ) : boolean;
//returns true if the user can see any part of the window.
//even when other windows partially cover the specified window.
Any thought on how to do this?