IOleParentUndoUnit::Add  1MRR6JT

Adds a simple undo unit to the collection.

HRESULT Add(

    IOleUndoUnit* pUU

//Pointer to undo unit to be added

   );

 

 

Parameters

pUU

[in] Pointer to undo unit to be added.

 

Return Values

S_OK

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.

See Also

IOleUndoManager::Add