BCGControlBar Pro for MFC
BOOL CBCGPChartLegendVisualObject::RemoveRelatedChart ( CBCGPChartVisualObject pChart,
BOOL  bRedraw = TRUE 
)

Disconnects a legend from a chart

Call this method to disconnect a legend from a chart. A legend without charts always has zero size.

Parameters
pCharta pointer to a chart that should be disconnected
bRedrawspecifies whether a legend should be redrawn