IShellBrowser::RemoveMenusSB method (shobjidl_core.h)

Permits the container to remove any of its menu elements from the in-place composite menu and to free all associated resources.

Syntax

HRESULT RemoveMenusSB(
  HMENU hmenuShared
);

Parameters

hmenuShared

Type: HMENU

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

Return value

Type: HRESULT

Returns S_OK if successful, or a COM-defined error value otherwise.

Remarks

This method is similar to the IOleInPlaceFrame::RemoveMenus method.

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

Notes to Calling Applications

The method is called by the object application while it is being UI-deactivated so the browser can remove its menus.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 4.0 or later)

See also

IShellBrowser