CToolBarCtrl::InsertButton

This method inserts 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.

At a Glance

Header file: Afxcmn.h
Platforms: Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL InsertButton( int nIndex, LPTBBUTTON lpButton );