This function retrieves the visibility state of the specified window. Because the return value specifies whether the window has the WS_VISIBLE style, it may be TRUE even if the window is totally obscured by other windows.
BOOL IsWindowVisible( HWND hWnd )
If the specified window, its parent window, its parent's parent window, and so forth, have the WS_VISIBLE style, the return value is TRUE.
Otherwise, the return value is FALSE.
EX1
int IsWindowVisible_ex1() { if(!IsWindowVisible(GetWindow())) out_str("The Origin window is hidden."); return 1; }
ShowWindow
origin.h