Skip to content

Latest commit

 

History

History
98 lines (70 loc) · 3.28 KB

nf-ole2-olesetmenudescriptor.md

File metadata and controls

98 lines (70 loc) · 3.28 KB
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.
OleSetMenuDescriptor
OleSetMenuDescriptor function [COM]
_ole_OleSetMenuDescriptor
com.olesetmenudescriptor
ole2/OleSetMenuDescriptor
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
OleSetMenuDescriptor
ole2/OleSetMenuDescriptor
c++
APIRef
kbSyntax
DllExport
Ole32.dll
OleSetMenuDescriptor
ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063)

OleSetMenuDescriptor function

-description

Installs or removes OLE dispatching code from the container's frame window.

-parameters

-param holemenu [in]

Handle to the composite menu descriptor returned by the OleCreateMenuDescriptor function. If NULL, the dispatching code is unhooked.

-param hwndFrame [in]

Handle to the container's frame window where the in-place composite menu is to be installed.

-param hwndActiveObject [in]

Handle to the object's in-place activation window. OLE dispatches menu messages and commands to this window.

-param lpFrame [in]

Pointer to the IOleInPlaceFrame interface on the container's frame window.

-param lpActiveObj [in]

Pointer to the IOleInPlaceActiveObject interface on the active in-place object.

-returns

This function returns S_OK on success.

-remarks

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.

-see-also

IOleInPlaceActiveObject

IOleInPlaceFrame::SetMenu

OleCreateMenuDescriptor