BCGControlBar Pro for MFC
virtual void CBCGPChartLegendVisualObject::OnLegendContentCreated ( )
protectedvirtual

Called when legend content has been created (or re-created)

Override this method in a derived class to add custom cells or/and set custom visual properties of legend cells. All legend cells are destroyed ("standard" and custom) when legend content is being created or updated. It's not recommended to keep pointers to legend cells or entries. Instead, call FindLegendEntry(), GetLegendEntry(), GetLegendCell() helpers.