TeeChart在VS2005,VS2008的入门教程
1、首先建立一个MFC工程,这个不详述了,笔者建立的是基于对话框的MFC,注意在建
立工程过程中,在advanced features步骤中,要把 ActiveX controls这项勾选上。
2、为工程添加一个新类,选择Categories下的MFC Class From TypeLib(这里很多人
会选错成MFC Class From ActiveX Control)
3、选择从Registry(注册
表
关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf
)添加类,Available type libraries中选择TeeChart Pro ActiveX Control v5<1.0>
从下面的接口选择中,选择需要用到的接口,这里只添加CSeries类。(有些教程说这里
要添加CTChart类,笔者认为没有必要,因为后面为TeeChart控件添加变量时,都会创建
CTChart类)。
school)], 4 4 house building as well as more than 1000 copies of books, more than 10 kinds of collection of newspapers and magazines, fires burnt down. In 1938, the Japanese learned that the national Government established in XI Tang Tomb rotten "clip" taxes, tax officers live in 8 of Yan Dong village farmers home, troops at night, Yao was burned several houses. 1938 new morning of September 18, the Japanese team went to the countryside "sweep" from the kaiyang village line to Tung Yang Jia Qiao yan Temple wall and met Yang Jia溇 Zhou Dana (male) weeks because of long-term illness and can't work in the fields, the Japanese see his face from scratch without calluses, regard him as "Shina", thrust a knife at the scene of his death. The body was stabbed 7 times, wound 13. The same day, Trang bang village heard the Japanese come to "mop-up" are hiding, mother of 9 Zhou Guanbao Zhang Aying to drill a "dry mound", was discovered by the Japanese, a shot in the end. The same day, is 7 zhouhaijiangzhi grandfather Zhou Yingbao to escape the Japanese army, was found on the road, a shot in the end. In March 1939, the Japanese army in Yan Tomb raiding, has arrested 16 people, in fengqiao cigarettes this morning bang, killing 11 people on the River, East meeting point in wood qiaotu in the afternoon killing 4 people on the Riverside. Gu Tong is a Japanese go speak the Shanghai dialect, later to be called Gu Tong as "kill left." On January 18, 1943, the elves, five thousand or six thousand, water and land go hand in hand "mop-up" jiaxing area west of the railway, Yan Tomb area fall. March 6, Niu Shan (County Government II section chief) carrying its child Niu Jun (strict Tomb seventh district Chang) and the District Assistant Yu Xuchu, and players Jin Fuqin, and Shen Baosheng, six people received Wujiang underground County Government notification
4、资源视图在对话框上单击右键,选择Insert ActiveX Control,再选择TeeChart Pro ActiveX
Control
5、对话框上出现了TeeChart控件,调整它的大小并把它移到合适的位置上,双击TeeChart
控件,为控件添加一个Series
我这里选择Fast Line的Series。
school)], 4 4 house building as well as more than 1000 copies of books, more than 10 kinds of collection of newspapers and magazines, fires burnt down. In 1938, the Japanese learned that the national Government established in XI Tang Tomb rotten "clip" taxes, tax officers live in 8 of Yan Dong village farmers home, troops at night, Yao was burned several houses. 1938 new morning of September 18, the Japanese team went to the countryside "sweep" from the kaiyang village line to Tung Yang Jia Qiao yan Temple wall and met Yang Jia溇 Zhou Dana (male) weeks because of long-term illness and can't work in the fields, the Japanese see his face from scratch without calluses, regard him as "Shina", thrust a knife at the scene of his death. The body was stabbed 7 times, wound 13. The same day, Trang bang village heard the Japanese come to "mop-up" are hiding, mother of 9 Zhou Guanbao Zhang Aying to drill a "dry mound", was discovered by the Japanese, a shot in the end. The same day, is 7 zhouhaijiangzhi grandfather Zhou Yingbao to escape the Japanese army, was found on the road, a shot in the end. In March 1939, the Japanese army in Yan Tomb raiding, has arrested 16 people, in fengqiao cigarettes this morning bang, killing 11 people on the River, East meeting point in wood qiaotu in the afternoon killing 4 people on the Riverside. Gu Tong is a Japanese go speak the Shanghai dialect, later to be called Gu Tong as "kill left." On January 18, 1943, the elves, five thousand or six thousand, water and land go hand in hand "mop-up" jiaxing area west of the railway, Yan Tomb area fall. March 6, Niu Shan (County Government II section chief) carrying its child Niu Jun (strict Tomb seventh district Chang) and the District Assistant Yu Xuchu, and players Jin Fuqin, and Shen Baosheng, six people received Wujiang underground County Government notification
6、右键单击控件,Add Variable(添加变量),都使用默认设置,设置Variable name,我这
里设为:m_tchartDemo
school)], 4 4 house building as well as more than 1000 copies of books, more than 10 kinds of collection of newspapers and magazines, fires burnt down. In 1938, the Japanese learned that the national Government established in XI Tang Tomb rotten "clip" taxes, tax officers live in 8 of Yan Dong village farmers home, troops at night, Yao was burned several houses. 1938 new morning of September 18, the Japanese team went to the countryside "sweep" from the kaiyang village line to Tung Yang Jia Qiao yan Temple wall and met Yang Jia溇 Zhou Dana (male) weeks because of long-term illness and can't work in the fields, the Japanese see his face from scratch without calluses, regard him as "Shina", thrust a knife at the scene of his death. The body was stabbed 7 times, wound 13. The same day, Trang bang village heard the Japanese come to "mop-up" are hiding, mother of 9 Zhou Guanbao Zhang Aying to drill a "dry mound", was discovered by the Japanese, a shot in the end. The same day, is 7 zhouhaijiangzhi grandfather Zhou Yingbao to escape the Japanese army, was found on the road, a shot in the end. In March 1939, the Japanese army in Yan Tomb raiding, has arrested 16 people, in fengqiao cigarettes this morning bang, killing 11 people on the River, East meeting point in wood qiaotu in the afternoon killing 4 people on the Riverside. Gu Tong is a Japanese go speak the Shanghai dialect, later to be called Gu Tong as "kill left." On January 18, 1943, the elves, five thousand or six thousand, water and land go hand in hand "mop-up" jiaxing area west of the railway, Yan Tomb area fall. March 6, Niu Shan (County Government II section chief) carrying its child Niu Jun (strict Tomb seventh district Chang) and the District Assistant Yu Xuchu, and players Jin Fuqin, and Shen Baosheng, six people received Wujiang underground County Government notification
7、在CXXXXXXXXDlg类的构造函数中,把m_tchartDemo(0)去掉。并在XXXXXXXXDlg.cpp中添加#include "CSeries.h"
8、在OnInitDialog函数中,添加以下代码:
CSeries serDemo = (CSeries)m_tchartDemo.Series(0);
serDemo.AddNullXY(5,5,NULL );
serDemo.AddNullXY(9,7,NULL );
serDemo.AddNullXY(14,2,NULL );
run一把:
school)], 4 4 house building as well as more than 1000 copies of books, more than 10 kinds of collection of newspapers and magazines, fires burnt down. In 1938, the Japanese learned that the national Government established in XI Tang Tomb rotten "clip" taxes, tax officers live in 8 of Yan Dong village farmers home, troops at night, Yao was burned several houses. 1938 new morning of September 18, the Japanese team went to the countryside "sweep" from the kaiyang village line to Tung Yang Jia Qiao yan Temple wall and met Yang Jia溇 Zhou Dana (male) weeks because of long-term illness and can't work in the fields, the Japanese see his face from scratch without calluses, regard him as "Shina", thrust a knife at the scene of his death. The body was stabbed 7 times, wound 13. The same day, Trang bang village heard the Japanese come to "mop-up" are hiding, mother of 9 Zhou Guanbao Zhang Aying to drill a "dry mound", was discovered by the Japanese, a shot in the end. The same day, is 7 zhouhaijiangzhi grandfather Zhou Yingbao to escape the Japanese army, was found on the road, a shot in the end. In March 1939, the Japanese army in Yan Tomb raiding, has arrested 16 people, in fengqiao cigarettes this morning bang, killing 11 people on the River, East meeting point in wood qiaotu in the afternoon killing 4 people on the Riverside. Gu Tong is a Japanese go speak the Shanghai dialect, later to be called Gu Tong as "kill left." On January 18, 1943, the elves, five thousand or six thousand, water and land go hand in hand "mop-up" jiaxing area west of the railway, Yan Tomb area fall. March 6, Niu Shan (County Government II section chief) carrying its child Niu Jun (strict Tomb seventh district Chang) and the District Assistant Yu Xuchu, and players Jin Fuqin, and Shen Baosheng, six people received Wujiang underground County Government notification
一个简单的绘图就完成。
school)], 4 4 house building as well as more than 1000 copies of books, more than 10 kinds of collection of newspapers and magazines, fires burnt down. In 1938, the Japanese learned that the national Government established in XI Tang Tomb rotten "clip" taxes, tax officers live in 8 of Yan Dong village farmers home, troops at night, Yao was burned several houses. 1938 new morning of September 18, the Japanese team went to the countryside "sweep" from the kaiyang village line to Tung Yang Jia Qiao yan Temple wall and met Yang Jia溇 Zhou Dana (male) weeks because of long-term illness and can't work in the fields, the Japanese see his face from scratch without calluses, regard him as "Shina", thrust a knife at the scene of his death. The body was stabbed 7 times, wound 13. The same day, Trang bang village heard the Japanese come to "mop-up" are hiding, mother of 9 Zhou Guanbao Zhang Aying to drill a "dry mound", was discovered by the Japanese, a shot in the end. The same day, is 7 zhouhaijiangzhi grandfather Zhou Yingbao to escape the Japanese army, was found on the road, a shot in the end. In March 1939, the Japanese army in Yan Tomb raiding, has arrested 16 people, in fengqiao cigarettes this morning bang, killing 11 people on the River, East meeting point in wood qiaotu in the afternoon killing 4 people on the Riverside. Gu Tong is a Japanese go speak the Shanghai dialect, later to be called Gu Tong as "kill left." On January 18, 1943, the elves, five thousand or six thousand, water and land go hand in hand "mop-up" jiaxing area west of the railway, Yan Tomb area fall. March 6, Niu Shan (County Government II section chief) carrying its child Niu Jun (strict Tomb seventh district Chang) and the District Assistant Yu Xuchu, and players Jin Fuqin, and Shen Baosheng, six people received Wujiang underground County Government notification