在安装目录下找到TeeChartxxxxx.ocx
以管理员的身份打开cmd 注册TeeChartxxxxx.ocx
regsvr32 TeeChartxxxxx.ocx
VS2015 使用TeeChart绘图控件
CRect rect;
mStaticList2.GetWindowRect(rect);
mStaticList2.ShowWindow(SW_HIDE);
ScreenToClient(rect);
mTeeChart = new CTChart;
mTeeChart->Create(NULL, WS_VISIBLE | WS_CHILD, rect, this, IDC_TCHART_SYSTEM_CDDAS_MILE);
mTitle = mTeeChart->get_Header();
CStrings titleStr = mTitle.get_Text();
titleStr.Clear();
titleStr.put_Text(_T("测试程序"));
mSpect = mTeeChart->get_Aspect();
mSpect.put_View3D(FALSE);
mLegend = (CLegend)mTeeChart->get_Legend();
mLegend.put_Visible(FALSE);
CAxes m_Axes1 = mTeeChart->get_Axis();
CAxis m_Left1 = m_Axes1.get_Left();
CAxis m_Bottom1 = m_Axes1.get_Bottom();
m_Left1.put_Automatic(FALSE);
m_Bottom1.put_Automatic(FALSE);
m_Bottom1.put_Maximum(12);
m_Bottom1.put_Minimum(0);
m_Left1.put_Maximum(8);
m_Left1.put_Minimum(0);
CAxisTitle mAxisLeftTitle = m_Left1.get_Title();
mAxisLeftTitle.put_Caption(_T("纵轴标题"));
CAxisTitle mAxisBottomTitle = m_Bottom1.get_Title();
mAxisBottomTitle.put_Caption(_T("横轴标题"));
mTeeChart->AddSeries(3);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)