Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IToolbar::AddButtons method

The IToolbar::AddButtons method enables a snap-in to add an array of buttons to the toolbar.

Syntax


HRESULT AddButtons(
  [inint         nButtons,
  [in] LPMMCBUTTON lpButtons
);

Parameters

nButtons [in]

The number of buttons in the array.

lpButtons [in]

A pointer to the MMCBUTTON structure that contains information necessary for creating a button on the toolbar.

Return value

This method can return one of these values.

S_OK

The buttons were successfully added.

E_INVALIDARG

The lpButtons parameter is NULL, nButtons is less than 1, or one of the MMCBUTTON items has an invalid image index or NULL button text or tooltip text.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IToolbar

 

 

Show: