Compartilhar via


CMFCToolBar::CalcSize

Called by the framework as part of the layout calculation process.

virtual CSize CalcSize(
   BOOL bVertDock
);

Parameters

  • [in] bVertDock
    TRUE to specify that the toolbar is docked vertically; FALSE to specify that the toolbar is docked horizontally.

Return Value

A CSize object that specifies the overall size of the buttons on the toolbar.

Remarks

This method considers the attributes that affect the size of each button, such as the area of the text label and the border size.

If the toolbar contains no buttons, this method returns the reserved size of a single button by using the CMFCToolBar::GetButtonSize method.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::GetButtonSize