Page 1 of 1

How to change Chart title in runtime with C++/MFC ?

Posted: Fri Aug 20, 2004 8:41 am
by 9523670
I want to change the title in runtime.
But I can not find corresponding method in class CTChart.
Could you tell me how to do it, or it is impossible in MFC?

Posted: Fri Aug 20, 2004 12:40 pm
by Chris
Hi Michael,
I want to change the title in runtime.
But I can not find corresponding method in class CTChart.
Could you tell me how to do it, or it is impossible in MFC?
Try:

Code: Select all

#include "Titles.h"
#include "Strings.h"

m_Chart1.GetHeader().GetText().Clear();
m_Chart1.GetHeader().GetText().Add(COleVariant("A New Title"));