2.2.4.34.12 PageBase::GetWindow

Description

Get the Window object associated with a page object.

Syntax

Window GetWindow( int nChildID = 0 )

Parameters

nChildID
[input]Resource ID of a window in the page. Use 0 to get the page's frame window (MDI ChildFrame)

Return

Returns the Window object associated with a page.

Examples

EX1

int PageBase_GetWindow_ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if( wp.IsValid() )
    {
        Window win = wp.GetWindow();
        if( win )
            printf("Got window successfully!\n");
        else 
            printf("Got window error!\n");
    }
    return 0;
}

Remark

See Also

Header to Include

origin.h