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


CToolBarCtrl::SetButtonStructSize

Specifies the size of the TBBUTTON structure.

void SetButtonStructSize(
   int nSize 
);

Параметры

  • nSize
    Size, in bytes, of the TBBUTTON structure.

Заметки

If you wanted to store extra data in the TBBUTTON structure, you could either derive a new structure from TBBUTTON, adding the members you needed, or create a new structure that contains a TBBUTTON structure as its first member. You would then call this function to tell the toolbar control the size of the new structure.

See CToolBarCtrl::AddButtons for more information on the TBBUTTON structure.

Требования

Header: afxcmn.h

См. также

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

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::Create

CToolBarCtrl::AddButtons

CToolBarCtrl::InsertButton

CToolBarCtrl::GetButton