IOleParentUndoUnit::FindUnit

Indicates if the specified unit is a child of this undo unit or one of its children, that is if the specified unit is part of the hierarchy in this parent unit.

HRESULT FindUnit(
  IOleUndoUnit* pUU   //Pointer to the undo unit to be found
);
 

Parameters

pUU
[in] Pointer to the undo unit to be found.

Return Values

S_OK
The specified undo unit is in the hierarchy subordinate to this parent.
S_FALSE
The specified undo unit is not part of the hierarchy under this parent. An error indicates an RPC failure condition.

Remarks

This is typically called by the undo manager in its implementation of its DiscardFrom method in the rare event that the unit being discarded is not a top-level unit. The parent unit should look in its own list first, then delegate to each child that is also a parent unit, as determined by doing a QueryInterface for IOleParentUndoUnit.

QuickInfo

  Windows NT: Use version 4.0 or later. New for OC96.
  Windows: Use Windows 95 or later. New for OC96.
  Windows CE: Unsupported.
  Header: Declared in ocidl.h.

See Also

IOleUndoManager::DiscardFrom