Skip to content

Latest commit

 

History

History
111 lines (88 loc) · 3.13 KB

nf-oleidl-ioleinplaceframe-removemenus.md

File metadata and controls

111 lines (88 loc) · 3.13 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
NF:oleidl.IOleInPlaceFrame.RemoveMenus
IOleInPlaceFrame::RemoveMenus (oleidl.h)
Removes a container's menu elements from the composite menu.
IOleInPlaceFrame interface [COM]
RemoveMenus method
IOleInPlaceFrame.RemoveMenus
IOleInPlaceFrame::RemoveMenus
RemoveMenus
RemoveMenus method [COM]
RemoveMenus method [COM]
IOleInPlaceFrame interface
_ole_ioleinplaceframe_removemenus
com.ioleinplaceframe_removemenus
oleidl/IOleInPlaceFrame::RemoveMenus
com\ioleinplaceframe_removemenus.htm
com
92d9fcda-8ede-4f38-ad56-59c4a75fe45a
12/05/2018
IOleInPlaceFrame interface [COM],RemoveMenus method, IOleInPlaceFrame.RemoveMenus, IOleInPlaceFrame::RemoveMenus, RemoveMenus, RemoveMenus method [COM], RemoveMenus method [COM],IOleInPlaceFrame interface, _ole_ioleinplaceframe_removemenus, com.ioleinplaceframe_removemenus, oleidl/IOleInPlaceFrame::RemoveMenus
oleidl.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
OleIdl.Idl
Windows
19H1
IOleInPlaceFrame::RemoveMenus
oleidl/IOleInPlaceFrame::RemoveMenus
c++
APIRef
kbSyntax
COM
OleIdl.h
IOleInPlaceFrame.RemoveMenus

IOleInPlaceFrame::RemoveMenus

-description

Removes a container's menu elements from the composite menu.

-parameters

-param hmenuShared [in]

A handle to the in-place composite menu that was constructed by calls to IOleInPlaceFrame::InsertMenus and the InsertMenu function.

-returns

This method returns S_OK on success. Other possible return values include the following.

Return code Description
E_INVALIDARG
The specified handle is invalid.
E_UNEXPECTED
An unexpected error has occurred.

-remarks

The object should always give the container a chance to remove its menu elements from the composite menu before deactivating the shared user interface.

Notes to Callers

This method is called by the object application while it is being UI-deactivated to remove its menus.

-see-also

IOleInPlaceFrame

IOleInPlaceFrame::SetMenu

InsertMenu