IMenuPopup::SetSubMenu method
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
- pmp [in]
-
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
|
Minimum supported client |
Windows XP with SP1 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: