changing color issue
Posted: Sat Jul 24, 2004 9:57 am
In my application, I add data to series like this:
void CMyTestView::OnTimer(UINT nIDEvent)
{
m_time++;
CTChart * pTC = (CTChart*)GetDlgItem(IDC_TCHART1);
pTC->Series(0).AddXY(m_time,rand(),"",m_color);
CFormView::OnTimer(nIDEvent);
}
Then I changed the m_color to an new color. But the data added befor did not change. How can I change the whole series to the new color.
Thank you!
void CMyTestView::OnTimer(UINT nIDEvent)
{
m_time++;
CTChart * pTC = (CTChart*)GetDlgItem(IDC_TCHART1);
pTC->Series(0).AddXY(m_time,rand(),"",m_color);
CFormView::OnTimer(nIDEvent);
}
Then I changed the m_color to an new color. But the data added befor did not change. How can I change the whole series to the new color.
Thank you!