IShellMenu::SetMenuToolbar method

Adds a menu to the menuband.

Syntax


HRESULT SetMenuToolbar(
  [in] IUnknown *punk,
  [in] DWORD    dwFlags
);

Parameters

punk [in]

Type: IUnknown*

A pointer to an object that supports CLSID_MenuToolbarBase in its QueryInterface method.

dwFlags [in]

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

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

 

 

Show: