共用方式為


CToolBarCtrl::AutoSize

Resizes the entire toolbar control.

void AutoSize( );

Remarks

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).

Requirements

Header: afxcmn.h

See Also

Concepts

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::SetBitmapSize

CToolBarCtrl::SetButtonSize

CToolBarCtrl::AddString

CToolBarCtrl::AddStrings