void CBCGPChartLegendVisualObject::UpdateLegendColors | ( | BOOL | bForceUpdate = FALSE , |
CBCGPChartVisualObject * | pChartOrg = FALSE |
||
) |
Updates legend colors
This method is called automatically when a color theme of the first related chart has been changed. If you set custom related chart properties directly, call this method with bForce = TRUE. If you want the legend using colors of another chart, pass a pointer to that chart in pChartOrg. The following legend colors are updated:
bForceUpdate | FALSE - legend colors won't be updated if they have already been set; otherwise the colors are taken from the first related chart or from pChartOrg |
pChartOrg | a pointer to a chart to take the colors from. If it's NULL, the legend takes colors from the first related chart |