CAxis::GetLabels().Count() returns 0
Posted: Sun Nov 15, 2009 3:55 pm
Hi,
I am using TeeChart under Windows XP, VS 2008.
For some reason after definig charts, axes, axes limits, the code:
"m_Chart.GetAxis().GetLeft().GetLabels().Count();"
retruns 0.
m_Chart is an object of CTChart class
If before this call the code:
pView->Invalidate();
pView->UpdateWindow();
is executed, where pView point to an object of a class derived from CFormView, that containes the CTChart object, I get
the correct count and not 0.
Why do I get 0 without the calls to pView? Do I miss any call to a TeeChart object?
Thanks,
Yaacov
I am using TeeChart under Windows XP, VS 2008.
For some reason after definig charts, axes, axes limits, the code:
"m_Chart.GetAxis().GetLeft().GetLabels().Count();"
retruns 0.
m_Chart is an object of CTChart class
If before this call the code:
pView->Invalidate();
pView->UpdateWindow();
is executed, where pView point to an object of a class derived from CFormView, that containes the CTChart object, I get
the correct count and not 0.
Why do I get 0 without the calls to pView? Do I miss any call to a TeeChart object?
Thanks,
Yaacov