CMFCToolBarComboBoxButton::OnCalculateSize
Called by the framework to calculate the size of the button.
virtual SIZE OnCalculateSize(
CDC* pDC,
const CSize& sizeDefault,
BOOL bHorz
);
Parameters
[in] pDC
The device context that displays the combo box button.[in] sizeDefault
The default size of the combo box button.[in] bHorz
The dock state of the parent toolbar. TRUE when the toolbar is docked horizontally and FALSE when the toolbar is docked vertically.
Return Value
A SIZE structure that contains the dimensions of the combo box button, in pixels.
Requirements
Header: afxtoolbarcomboboxbutton.h