CToolBarCtrl::InsertButton

BOOL InsertButton( int nIndex, LPTBBUTTON lpButton );

Return Value

Nonzero if successful; otherwise zero.

Parameters

nIndex

Zero-based index of a button. This function inserts the new button to the left of this button.

lpButton

Address of a TBBUTTON structure containing information about the button to insert. See CToolBarCtrl::AddButtons for a description of the TBBUTTON structure.

Remarks

Call this function to insert a button in a toolbar control.

The image and/or string whose index you provide must have previously been added to the toolbar control’s list using AddBitmap, AddString, and/or AddStrings.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::AddButtons, CToolBarCtrl::DeleteButton, CToolBarCtrl::AddBitmap, CToolBarCtrl::AddString, CToolBarCtrl::AddStrings