GraphPageBase::GraphPageBase

Description

Construct a GraphPage object using the name of an existing page.


Construct a GraphPage object using an existing GraphPage object.

Syntax

GraphPageBase( LPCTSTR lpcszName )

GraphPageBase( PageBase & page )

Parameters

lpcszName
[input]The name of an existing graph page.

page
[input]An existing GraphPage object.

Return

Examples

Ex1

//Construct a GraphPage object using the name of an existing page
void GraphPageBase_GraphPageBase_Ex1()
{
        GraphPage gp;
        gp.Create("origin");
        
        GraphPageBase gpBase(gp.GetName());
        if(gpBase)
                out_str(gpBase.GetName());
}

Ex2

//Construct a GraphPage object using an existing GraphPage object
void GraphPageBase_GraphPageBase_Ex2()
{
    LayoutPage layPage;
    layPage.Create();
    
    GraphPageBase gpBase(layPage);
    if(gpBase)
        out_str(gpBase.GetName());  
}

Remark

See Also

header to Include

origin.h