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?
How to change Chart title in runtime with C++/MFC ?
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Michael,
Try: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?
Code: Select all
#include "Titles.h"
#include "Strings.h"
m_Chart1.GetHeader().GetText().Clear();
m_Chart1.GetHeader().GetText().Add(COleVariant("A New Title"));
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/