Share via


CMFCCustomizeButton::OnCalculateSize

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

See Also

Reference

CMFCCustomizeButton Class

CMFCToolBarMenuButton::OnCalculateSize

Other Resources

MFC Hierarchy Chart