UASFLAGS

The UASFLAGS enumeration value supplies information about the parent undo unit. It is used in IOleParentUndoUnit::GetParentState.

typedef enum tagUASFLAGS 
{ 
    UAS_NORMAL          = 0, 
    UAS_BLOCKED         = 0x1, 
    UAS_NOPARENTENABLE  = 0x2, 
    UAS_MASK            = 0x3, 
} UASFLAGS; 
 

Elements

UAS_NORMAL
The currently open parent undo unit is in a normal, unblocked state and can accept any new units added through calls to its Open or Add methods.
UAS_BLOCKED
The currently open undo unit is blocked and will reject any undo units added through calls to its Open or Add methods. The caller need not create any new units since they will just be rejected.
UAS_NOPARENTENABLE
The currently open undo unit will accept new units, but the caller should act like there is no currently open unit. This means that if the new unit being created requires a parent, then this parent does not satisfy that requirement and the undo stack should be cleared.
UAS_MASK
When checking for a normal state, use this value to mask unused bits in the pdwState parameter to the GetParentState method for future compatibility. For example:
    fNormal = ((pdwState & UAS_MASK) == UAS_NORMAL) 
 

See Also

IOleParentUndoUnit::GetParentState