2.1.25.41 IsWindowVisible


Description

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.

Syntax

BOOL IsWindowVisible( HWND hWnd )

Parameters

hWnd
[input] Handle to the window to test.

Return

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.

Examples

EX1

int IsWindowVisible_ex1()
{
    if(!IsWindowVisible(GetWindow()))
        out_str("The Origin window is hidden.");
    return 1;
}

Remark

See Also

ShowWindow

Header to Include

origin.h

Reference