IOleInPlaceSite::DeactivateAndUndo
A version of this page is also available for
4/8/2010
Causes the container to end the in-place session, deactivate the object, and revert to its own saved undo state.
Syntax
HRESULT IOleInPlaceSite::DeactivateAndUndo();
Return Value
This method supports the following return values:
Value | Description |
---|---|
S_OK |
The method completed successfully. |
E_UNEXPECTED |
The call to the method unexpectedly failed. |
Notes to Callers
Called by the active object when the user invokes undo just after activating the object.
Notes to Implementers
Upon completion of this call, the container should call IOleInPlaceObject::UIDeactivate to remove the user interface for the object, activate itself, and undo.
Requirements
Header | Oleidl.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |