Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IOleInPlaceSite::OnUIActivate method

Notifies the container that the object is about to be activated in place and that the object is going to replace the container's main menu with an in-place composite menu.

Syntax


HRESULT OnUIActivate();

Parameters

This method has no parameters.

Return value

This method returns S_OK if the container allows the in-place activation. Other possible return values include the following.

Return codeDescription
E_UNEXPECTED

An unexpected error has occurred.

 

Remarks

Notes to Callers

The in-place object calls IOleInPlaceSite::OnUIActivate just before activating its user interface.

Notes to Implementers

The container should remove any user interface associated with its own activation. If the container is itself an embedded object, it should remove its document-level user interface.

If there is already an object active in place in the same document, the container should call IOleInPlaceObject::UIDeactivate before calling OnUIDeactivate.

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_IOleInPlaceSite is defined as 00000119-0000-0000-C000-000000000046

See also

IOleInPlaceSite
IOleInPlaceObject::UIDeactivate

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.