Export (0) Print
Expand All

IOleInPlaceFrame::RemoveMenus method

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

Syntax


HRESULT RemoveMenus(
  [in]  HMENU hmenuShared
);

Parameters

hmenuShared [in]

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 codeDescription
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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IOleInPlaceFrame is defined as 00000116-0000-0000-C000-000000000046

See also

InsertMenu
IOleInPlaceFrame
IOleInPlaceFrame::SetMenu

 

 

Community Additions

ADD
Show:
© 2014 Microsoft