This function returns the visibility state of a window.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwnd; /* Window handle. */ BOOL rc; /* Visibility-state indicator. */ rc = WinIsWindowVisible(hwnd);