BCGControlBar Pro for MFC
virtual void CBCGPBaseChartImpl::OnDrawChartLegendKey ( CBCGPGraphicsManager pGM,
const CBCGPRect rectLegendKey,
const BCGPChartFormatSeries pSeriesStyle,
CBCGPChartSeries pSeries,
int  nDataPointIndex 

Called to draw a legend key.

Override this method in a derived class if you need to customize appearance of a legend key on the "implementation".

You can also customize appearance of a legend key size on the "chart" level by overriding CBCGPChartVisualObject::OnDrawChartLegendKey.

If you need to customize also legend key size override CBCGPChartVisualObject::OnCalcLegendKeySize.

pGMA pointer to a graphics manager.
rectLegendKeyBounding rectangle of a legend key.
pSeriesStyleSeries formatting options.
pSeriesA pointer to a series.
nDataPointIndexSpecifies zero-based data point index. It can be -1 if a key is drawn for a series.