IsWindowVisible

2.x

  BOOL IsWindowVisible(hwnd)    
  HWND hwnd; /* handle of window to test */

The IsWindowVisible function determines the visibility state of the given window.

Parameters

hwnd

Identifies the window.

Return Value

The return value is nonzero if the specified window is visible on the screen (has the WS_VISIBLE style bit set). The return value is zero if the window is not visible. Because the return value reflects the value of the window's WS_VISIBLE flag, it may be nonzero even if the window is totally obscured by other windows.

Comments

A window possesses a visibility state indicated by the WS_VISIBLE style bit. When this style bit is set, the window is displayed and subsequent drawing into the window is displayed as long as the window has the style bit set.

Any drawing to a window that has the WS_VISIBLE style will not be displayed if the window is covered by other windows or is clipped by its parent window.

See Also

ShowWindow