Window::ShowWindow

Description

This function sets the specified window's show state.

Syntax

BOOL ShowWindow( int nCmdShow )

Parameters

nCmdShow
[input]Specifies how the window is to be shown. It can be 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 Window_ShowWindow_ex1()
{
    // make the worksheet window iconized
    WorksheetPage  wksPg = Project.WorksheetPages(0);
    if (wksPg)
    {            
        Window winWks = wksPg.GetWindow();
        if(winWks)
            winWks.ShowWindow(SW_MINIMIZE);
            //--> wkspg should be min.
    }
    return 0;
}

Remark

See Also

Header to Include

origin.h