BCGControlBar Pro for MFC
void CBCGPChartLegendVisualObject::SetAdjustLegendSizeByTitleSize ( BOOL  bSet = TRUE,
BOOL  bRedraw = TRUE 
)

Defines how to adjust legend size if legend title is larger than total size of all cells in a row

This option is valid only for vertical layout.

If this option is TRUE all entries are automatically expanded up to title size. If in this case the legend width exceeds the width of visual object, the right side of legend will be clipped.

If this option is set to FALSE, the maximal legend width is limited by visual object's width (m_rect) and title may be clipped, but all entries will be visible (if m_rect is large enough to show all cells at their minimum size).

Parameters
bSettells how to adjust legend size if legend title is larger than total size of all cells in a row
bRedrawspecifies whether a legend should be redrawn