共用方式為


CToolBarCtrl::GetRows

Retrieves the number of rows of buttons currently displayed by the toolbar control.

int GetRows( ) const;

Return Value

Number of rows of buttons currently displayed on the toolbar.

Remarks

Note that the number of rows will always be one unless the toolbar was created with the TBSTYLE_WRAPABLE style.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::Create

CToolBarCtrl::SetRows