UASFLAGS enumeration

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

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 IOleParentUndoUnit::Open or IOleParentUndoUnit::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 IOleParentUndoUnit::GetParentState method for future compatibility. For example:

fNormal = ((pdwState & UAS_MASK) == UAS_NORMAL)

Requirements

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

 

 

Show: