IShellBrowser::SetToolbarItems method (shobjidl_core.h)
[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
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll (version 4.0 or later) |