Notifies the container on deactivation that it should reinstall its user interface and take focus, and whether or not the object has an undoable state.
HRESULT OnUIDeactivate(
BOOL fUndoable //Specifies if object can undo changes
);
This method supports the standard return value E_UNEXPECTED, as well as the following:
The object indicates whether it can undo changes through the fUndoable flag. If the object can undo changes, the container can (by the user invoking the Edit Undo command) call the IOleInPlaceObject::ReactivateAndUndo method to undo the changes.
IOleInPlaceSite::OnUIDeactivate is called by the site's immediate child object when it is deactivating to notify the container that it should reinstall its own user interface components and take focus. The container should wait for the call to IOleInPlaceSite::OnUIDeactivate to complete before fully cleaning up and destroying any composite submenus.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oleidl.h.
IOleInPlaceObject::ReactivateAndUndo