UASFLAGS enumeration (ocidl.h)

Provides information about the parent undo unit.

Syntax

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

Constants

 
UAS_NORMAL
Value: 0
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
Value: 0x1
The currently open undo unit is blocked and will reject any undo units added through calls to its IOleParentUndoUnit::Open or IOleParentUndoUnit::Add methods. The caller need not create any new units since they will just be rejected.
UAS_NOPARENTENABLE
Value: 0x2
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
Value: 0x3
When checking for a normal state, use this value to mask unused bits in the pdwState parameter to the IOleParentUndoUnit::GetParentState method for future compatibility. For example:


syntax<br>fNormal = ((pdwState & UAS_MASK) == UAS_NORMAL)<br>

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header ocidl.h

See also

IOleParentUndoUnit::GetParentState