CMFCToolBar::CalcFixedLayout
Calculates the horizontal size of the toolbar.
virtual CSize CalcFixedLayout(
BOOL bStretch,
BOOL bHorz
);
Parameters
[in] bStretch
TRUE to stretch the toolbar to the size of the parent frame.[in] bHorz
TRUE to orient the toolbar horizontally; FALSE to orient the toolbar vertically.
Return Value
A CSize object that specifies the size of the toolbar.
Remarks
This method calculates the size of the toolbar by using the CMFCToolBar::CalcLayout method. It passes the LM_STRETCH flag for the dwMode parameter if bStretch is TRUE. It passes the LM_HORZ flag if bHorz is TRUE.
See the VisualStudioDemo sample for an example that uses this method.
Requirements
Header: afxtoolbar.h