Export (0) Print
Expand All

IOleInPlaceObject::ReactivateAndUndo method

Reactivates a previously deactivated object, undoing the last state of the object.

Syntax


HRESULT ReactivateAndUndo();

Parameters

This method has no parameters.

Return value

This method returns S_OK on success. Other possible return values include the following.

Return codeDescription
E_NOTUNDOABLE

The undo state is not available.

E_OUTOFMEMORY

There is insufficient memory available for the operation.

E_UNEXPECTED

An unexpected error has occurred.

 

Remarks

If the user chooses the Undo command before the undo state of the object is lost, the object's immediate container calls IOleInPlaceObject::ReactivateAndUndo to activate the user interface, carry out the undo operation, and return the object to the active state.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IOleInPlaceObject is defined as 00000113-0000-0000-C000-000000000046

See also

IOleInPlaceObject

 

 

Community Additions

ADD
Show:
© 2014 Microsoft