I believe that the function I need is SetHorizMargin() but this does not have any effect.
Basically, I want to set the legend to top, center. Currently, it gets set to top but has a right offset of 10% when I use the following code:
Code: Select all
m_wndChart.GetLegend().SetAlignment(laTop);
m_wndChart.GetLegend().SetHorizMargin(0);