CMFCColorBar::ContextToSize

Calculates the vertical and horizontal margins that are required to contain the buttons on the color bar control, and adjusts the location of those buttons.

void ContextToSize(
   BOOL bSquareButtons = TRUE, 
   BOOL bCenterButtons = TRUE
);

Parameters

Parameter

Description

[in] bSquareButtons

TRUE to specify that the shape of the buttons on a color bar control are square; otherwise, FALSE. The default value is TRUE.

[in] bCenterButtons

TRUE to specify that the content on the face of a color bar control button is centered; otherwise, FALSE. The default value is TRUE.

Requirements

Header: afxcolorbar.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCColorBar Class

CMFCColorBar::AdjustLocations