Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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 IOleInPlaceSite::OnUIActivate();

Return Value

This method supports the following return values:

Value Description

S_OK

The container allows the in-place activation.

E_UNEXPECTED

The call to the method unexpectedly failed.

Notes to Callers

The in-place object calls IOleInPlaceSite::OnUIActivatejust 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::UIDeactivatebefore calling OnUIDeactivate.

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