2.2.4.33.20 Page::TestFlag

Description

Test 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

BOOL TestFlag( DWORD dwBit )

Parameters

dwBit
[input] a bit to be tested, return true if bit is set, false if not

Return

TRUE means this bit is set else FALSE.

Examples

EX1

//Create a graph before run the code
void Page_TestFlag_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

Page::SetFlag

See Also

Header to Include

origin.h