PageBase::IsInManager

Description

Tests if a particular page is in the page manager. Returns false if the particular page is created as temp or with the bit CREATE_SET_MISSING_IN_MANAGER turned on or if the page is set as deleted.

Syntax

BOOL IsInManager( )

Parameters

Return

returns zero if the particular page is created as temp or with the bit CREATE_SET_MISSING_IN_MANAGER turned on or if the page is set as deleted. Otherwise a non zero value is returned.

Examples

EX1

static void _test_is_in_manager(PageBase& pg)
{
    if( pg )
        printf("Page %s %s managed in this project explorer.\n", pg.GetName(), pg.IsInManager()? "is" : "is NOT");    
}

int PageBase_IsInManager_Ex1()
{
    GraphPage gp;
    gp.Create(NULL, CREATE_SET_MISSING_IN_MANAGER);
    _test_is_in_manager(gp);
    
    GraphPage gp2;
    gp2.Create();
    _test_is_in_manager(gp2);
    
    return 0;
}

Remark

See Also

header to Include

origin.h