Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IShellBrowser::SetToolbarItems method

[This method has no effect on Windows Vista or later operating systems.]

Adds toolbar items to Windows Explorer's toolbar.

Syntax


HRESULT SetToolbarItems(
  LPTBBUTTONSB lpButtons,
  UINT nButtons,
  UINT uFlags
);

Parameters

lpButtons

Type: LPTBBUTTONSB

The address of an array of TBBUTTON structures.

nButtons

Type: UINT

The number of TBBUTTON structures in the lpButtons array.

uFlags

Type: UINT

Flags specifying where the toolbar buttons should go. This parameter can be one or more of the following values.

FCT_ADDTOEND

Add at the right side of the toolbar.

FCT_CONFIGABLE

Not implemented.

FCT_MERGE

Merge the toolbar items instead of replacing all of the buttons with those provided by the view. This is the recommended choice.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 4.0 or later)

See also

IShellBrowser

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.