LayoutPage
Construct a LayoutPage object using the name of an existing Origin layout page.
Construct a LayoutPage object using an existing LayoutPage object.
LayoutPage( LPCTSTR lpcszName )
LayoutPage( PageBase & page )
EX1
//Construct a LayoutPage object using the name of an existing Origin layout page int LayoutPage_LayoutPage_ex1() { LayoutPage lp; lp.Create("Layout"); if( lp.IsValid() ) { LayoutPage lp2(lp.GetName()); if( lp2.IsValid() ) printf("lp and lp2 are both attached to '%s'\n", lp2.GetName()); } return 0; }
EX2
//Construct a LayoutPage object using an existing LayoutPage object int LayoutPage_LayoutPage_ex2() { LayoutPage lp; lp.Create("Layout"); if( lp.IsValid() ) { LayoutPage lp2(lp); if( lp2.IsValid() ) printf("lp and lp2 are both attached to '%s'\n", lp2.GetName()); } return 0; }
Page::Create
origin.h