IOleParentUndoUnit::FindUnit method (ocidl.h)
Indicates whether 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.
Syntax
HRESULT FindUnit(
[in] IOleUndoUnit *pUU
);
Parameters
[in] pUU
An IOleUndoUnit pointer to the undo unit to be found.
Return value
This method returns S_OK if the specified undo unit is in the hierarchy subordinate to this parent; otherwise, S_FALSE.
Remarks
This is typically called by the undo manager in its implementation of its IOleUndoManager::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 IUnknown::QueryInterface for IOleParentUndoUnit.
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 |