UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | req.apiset | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:ole2.OleSetMenuDescriptor |
OleSetMenuDescriptor function (ole2.h) |
Installs or removes OLE dispatching code from the container's frame window. |
|
com\olesetmenudescriptor.htm |
com |
c80fe36d-5093-4814-83a9-0c11c5a7cf5f |
12/05/2018 |
OleSetMenuDescriptor, OleSetMenuDescriptor function [COM], _ole_OleSetMenuDescriptor, com.olesetmenudescriptor, ole2/OleSetMenuDescriptor |
ole2.h |
Windows |
Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
Ole32.lib |
Ole32.dll |
Windows |
19H1 |
|
|
|
|
|
|
ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063) |
Installs or removes OLE dispatching code from the container's frame window.
Handle to the composite menu descriptor returned by the OleCreateMenuDescriptor function. If NULL, the dispatching code is unhooked.
Handle to the container's frame window where the in-place composite menu is to be installed.
Handle to the object's in-place activation window. OLE dispatches menu messages and commands to this window.
Pointer to the IOleInPlaceFrame interface on the container's frame window.
Pointer to the IOleInPlaceActiveObject interface on the active in-place object.
This function returns S_OK on success.
The container should call OleSetMenuDescriptor to install the dispatching code on hwndFrame when the object calls the IOleInPlaceFrame::SetMenu method, or to remove the dispatching code by passing NULL as the value for holemenu to OleSetMenuDescriptor.
If both the lpFrame and lpActiveObj parameters are non-NULL, OLE installs the context-sensitive help F1 message filter for the application. Otherwise, the application must supply its own message filter.