TChart Pro v2015 ActiveX : ClearChart Error
Posted: Thu Jun 18, 2015 10:56 pm
I had integrated TChart2015 ActiveX and it was working. But I am not sure what I changed but now seem to be getting an error clearing the chart (pChart->ClearChart()).
Has anything changed? Here is the code snippet:
int numCharts = pParent->GetNumTotalCharts();
UINT tempID = 99 + numCharts;
CTChart* pChart = new CTChart();
pChart->Create(NULL, WS_CHILD | WS_VISIBLE, newChartRect, this, tempID );
pChart->ClearChart();
Has anything changed? Here is the code snippet:
int numCharts = pParent->GetNumTotalCharts();
UINT tempID = 99 + numCharts;
CTChart* pChart = new CTChart();
pChart->Create(NULL, WS_CHILD | WS_VISIBLE, newChartRect, this, tempID );
pChart->ClearChart();