Share via


IOleInPlaceSite::DiscardUndoState

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Tells the container that the object no longer has any undo state and that the container should not call IOleInPlaceObject::ReActivateAndUndo.

Syntax

HRESULT IOleInPlaceSite::DiscardUndoState();

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.

Remarks

If an object is activated in place and the object's associated object application maintains only one level of undo, there is no need to have more than one entry on the undo stack. That is, once a change has been made to the active object that invalidates its undo state saved by the container, there is no need to maintain this undo state in the container.

Notes to Callers

IOleInPlaceSite::DiscardUndoState is called by the active object while performing some action that would discard the undo state of the object. The in-place object calls this method to notify the container to discard the object's last saved undo state.

Requirements

Header Oleidl.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IOleInPlaceSite