CMFCCustomizeButton::OnCalculateSize
Called by the framework to calculate the size of the button for a specified device context and docking state.
virtual SIZE OnCalculateSize(
CDC* pDC,
const CSize& sizeDefault,
BOOL bHorz
);
Parameters
Parameter |
Description |
[in] pDC |
Unused. |
[in] sizeDefault |
The default size of the button. |
[in] bHorz |
The current dock state of the parent toolbar. |
Return Value
A SIZE structure that contains the dimensions of the button.
Remarks
Pass TRUE for the bHorz parameter to indicate that the toolbar is docked horizontally or floating; pass FALSE to indicate that the toolbar is docked vertically.
Requirements
Header: afxcustomizebutton.h