IOleParentUndoUnit::FindUnit method
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
- pUU [in]
-
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
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IOleParentUndoUnit is defined as A1FAF330-EF97-11CE-9BC9-00AA00608E01 |
See also