2.1.25.67 ShowWindow


Description

This function sets the specified window's show state

Syntax

BOOL ShowWindow( HWND hWnd, int nCmdShow )

Parameters

hWnd
[input] Handle to the window to test.
nCmdShow
[input] SW_HIDE, SW_NORMAL, SW_MINIMIZE, SW_MAXIMIZE etc.

Return

If the window was previously visible, the return value is TRUE.

If the window was previously hidden, the return value is FALSE.

Examples

EX1

int ShowWindow_ex1()
{
    // make the Origin main window minimized
    HWND  hWnd = GetWindow();
    if(hWnd)
           ShowWindow(hWnd, SW_MINIMIZE);
    return 1;
}

Remark

See Also

IsWindowVisible

Header to Include

origin.h

Reference