PageBase::GetShow

Description

Get the show state of the page.

Syntax

int GetShow(BOOL bRestrictCheck = FALSE)

Parameters

bRestrictCheck
[input] if set as TRUE, will get the actual state of the page even if it is not in active folder, if set as FALSE, will always return PAGE_NORMAL when the page is not in active folder.

Return

Returns one of the following values: PAGE_NORMAL, PAGE_MINIMIZED, PAGE_MAXIMIZED, and PAGE_HIDDEN

Examples

EX1

int PageBase_GetShow_ex1()
{
    foreach(PageBase pb in Project.Pages)
    {
        if( pb.GetShow() == PAGE_HIDDEN )
            printf("%s is hidden\n", pb.GetName());
        else
            printf("%s show state is %d\n", pb.GetName(), pb.GetShow());
    }
    return 0;
}

Remark

See Also

PageBase::SetShow

Header to Include

origin.h