IOleInPlaceFrame::RemoveMenus method (oleidl.h)
Removes a container's menu elements from the composite menu.
Syntax
HRESULT RemoveMenus(
[in] HMENU hmenuShared
);
Parameters
[in] hmenuShared
A handle to the in-place composite menu that was constructed by calls to IOleInPlaceFrame::InsertMenus and the InsertMenu function.
Return value
This method returns S_OK on success. Other possible return values include the following.
Return code | Description |
---|---|
|
The specified handle is invalid. |
|
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.Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | oleidl.h |