IToolbar::InsertButton

[This is preliminary documentation and subject to change.]

Enables a snap-in to add a single button to the toolbar.

HRESULT InsertButton(
  int nIndex,  // Specifies the button's position.
  LPMMCBUTTON lpButton
               // Pointer to the structure defining the button
);
 

Parameter

nIndex
[in] Position at which the button will be inserted.
lpButton
[in]Pointer to the MMCBUTTON structure that defines the button to be inserted.

Return Values

S_OK
The button was successfully added to the toolbar.

See Also

IToolbar