BCGControlBar Pro for MFC
virtual BOOL CBCGPChartLegendVisualObject::OnAdjustLegendBounds ( const CBCGPSize szLegendSize,
const CBCGPRect rectControl,
CBCGPRect rectLegendBounds 
)
inlineprotectedvirtual

Called to adjust legend bounds

You can override this method to reposition a legend within visual object if the standard alignment is not sufficient. Because size of rectControl can be greater or smaller than szLegendSize, you may want to reposition the legend within bounds of visual object according to your custom requirements. You need to return TRUE from the overridden method to skip default processing.

Parameters
szLegendSizespecifies actual legend size
rectControlbounding rectangle of legend visual object
rectLegendBoundsshould contain legend bounds when the method returns