Page::SetFlag

Description

Set or clear an internal flag. These bits are part of a control DWORD in the Page structure that are not saved into OPJ. They are only used to control transient properties in the page

Syntax

void SetFlag( DWORD dwBit, BOOL bSet = true )

Parameters

dwBit
[input] bit to set or clear, PGDWNS_DISABLE_LT_EVENTS, PGDWNS_PLOT_EXCLUDED_FROM_MANAGER etc
bSet
[input] true to turn bit on and false to turn it off

Return

Examples

EX1

//Create a graph before run the code
void Page_SetFlag_Ex1(string strPageName = "Graph1")
{
    GraphPage pg(strPageName);
    if( pg )
    {
        pg.SetFlag(PGDWNS_DISABLE_LT_EVENTS, true);
        if( !pg.TestFlag(PGDWNS_DISABLE_LT_EVENTS) )
            printf("Fail to set page flag\n.");
    }
}

Remark

See Also

Page::TestFlag

header to Include

origin.h