|
IOleInPlaceSite::DiscardUndoState
Tells the container that the object.no longer has any undo state and that the
container should not call IOleInPlaceObject::ReActivateAndUndo.
HRESULT IOleInPlaceSite::DiscardUndoState();
Return Values
S_OK
The method completed successfully.
E_UNEXPECTED
An unexpected error occurred.
Comments
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.
See Also
IOleInPlaceSite::DeactivateAndUndo
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|