PageBase::SetShow

Description

Shows a hidden page or opens a minimized window.

Syntax

int SetShow( int nNewShow = PAGE_ACTIVATE )

Parameters

nNewShow
[input] PAGE_ACTIVATE causes window to be activated as well

Return

Returns the original show state of the page on success and -1 on failure.

Examples

EX1

void PageBase_SetShow_ex1()
{
    Worksheet wksTemp;
    if(wksTemp.Create(NULL, CREATE_HIDDEN)) // Create hidden worksheet 
    {
        // Then show page 
        wksTemp.GetPage().Rename("MyNewWks");
        wksTemp.GetPage().SetShow(PAGE_ACTIVATE);
    }
}

Remark

Shows a hidden page or opens a minimized window. If PAGE_ACTIVATE is specified for nNewShow the effect is the same as if the page were double-clicked in Project Explorer.

See Also

PageBase::GetShow, OriginObject::CheckShowActivate

header to Include

origin.h