IsWindowVisible

This function retrieves the visibility state of the specified window.

BOOL IsWindowVisible(
HWND hWnd ); 

Parameters

  • hWnd
    Handle to the window to test.

Return Values

Nonzero indicates that the specified window and its parent window have the WS_VISIBLE style. Zero indicates that the specified window and its parent window do not have the WS_VISIBLE style. Because the return value specifies whether the window has the WS_VISIBLE style, it may be nonzero even if the window is totally obscured by other windows.

Remarks

The visibility state of a window is indicated by the WS_VISIBLE style bit. When WS_VISIBLE is set, the window is displayed and subsequent drawing into it is displayed as long as the window has the WS_VISIBLE style.

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

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

IsWindowEnabled,ShowWindow

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.