IOleParentUndoUnit::Add method (ocidl.h)

Adds a simple undo unit to the collection.

Syntax

HRESULT Add(
  [in] IOleUndoUnit *pUU
);

Parameters

[in] pUU

An IOleUndoUnit pointer to the undo unit to be added.

Return value

This method returns S_OK if the specified unit was successfully added or the parent unit was blocked.

Remarks

The parent undo unit or undo manager must accept any undo unit given to it, unless it is blocked. If it is blocked, it should do nothing but return S_OK.

Requirements

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

See also

IOleParentUndoUnit

IOleUndoManager::Add