IMenuPopup::SetSubMenu method (shobjidl_core.h)

Sets the given menu bar interface to be the submenu of the calling application object's interface.

Syntax

HRESULT SetSubMenu(
  [in] IMenuPopup *pmp,
       BOOL       fSet
);

Parameters

[in] pmp

Type: IMenuPopup*

A pointer to an IMenuPopup interface that specifies the menu bar of interest.

fSet

Type: BOOL

Removes the submenu if fSet is set to FALSE.

Return value

Type: HRESULT

Always returns S_OK.

Requirements

Requirement Value
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)