This documentation is archived and is not being maintained.

CToolBarCtrl::AddString

Adds a new string, passed as a resource ID, to the toolbar's internal list of strings.

int AddString( 
   UINT nStringID  
);

nStringID

Resource identifier of the string resource to add to the toolbar control's string list.

The zero-based index of the first new string added if successful; otherwise –1.

Header: afxcmn.h

Show: