Поделиться через


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

См. также

Основные понятия

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::AddStrings

CToolBarCtrl::AddButtons

CToolBarCtrl::InsertButton

CToolBarCtrl::AddBitmap