IShellMenu::SetMenuToolbar method (shobjidl_core.h)
Adds a menu to the menuband.
Syntax
HRESULT SetMenuToolbar(
[in] IUnknown *punk,
[in] DWORD dwFlags
);
Parameters
[in] punk
Type: IUnknown*
A pointer to an object that supports CLSID_MenuToolbarBase in its QueryInterface method.
[in] dwFlags
Type: DWORD
Flags that control how the menu operates.
SMSET_TOP
Bias this namespace to the top of the menu.
SMSET_BOTTOM
Bias this namespace to the bottom of the menu.
SMSET_DONTOWN
The Menuband does not own the non-ref counted object.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP2 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll |