CToolBarCtrl::AutoSize
Resizes the entire toolbar control.
void AutoSize( );
Заметки
You should call this function when the size of the parent window changes or when the size of the toolbar changes (such as when you set the button or bitmap size, or add strings).
Требования
Header: afxcmn.h