BCGControlBar Pro for MFC
virtual CBCGPSize CBCGPChartLegendVisualObject::GetLegendSize ( BOOL  bWithPadding = TRUE,
CBCGPGraphicsManager pGM = NULL 

Returns legend size

Call this method to retrieve legend size. Set bWithPadding to FALSE to retrieve the exact legend size. If bWithPadding is TRUE, this method adds the padding specified in m_legendStyle. It should be taken into account when you reposition the legend within container.

bWithPaddingspecifies whether the legend size should be returned with padding (default), or not
pGMa pointer to a graphics manager