2.2.4.33.18 Page::Reorder

Description

Change the order of the current or specified layer.

Syntax

BOOL Reorder( int nDst, int nSrc = -1, DWORD dwCtrl = 0 )

Parameters

nDst
[input] the destination to move a layer to.
nSrc
[input] the source layer to be moved. -1 to move the active layer.
dwCtrl
[input] control options. See the OCD_* flags in oc_const.h

Return

TRUE for success, FALSE for failure.

Examples

EX1

// before run this example, please make sure this graph page has at least two layers.
int Page_Reorder_Ex1(string strPageName = "Graph1")
{
    GraphPage pg(strPageName);
    if( pg )
    {
        if( !pg.Reorder(0, -1) ) //move the active layer as the first
            printf("Fail to reorder layers");
    }
    return 0;
}

Remark

See Also

Header to Include

origin.h