void CSolarCodDebugDlg::TeeChartDisplay()
{
// TODO: 在此添加控件通知处理程序代码
const UINT nDATALENGTH = 2048;
long i;
double dval;
COleSafeArray XValues;
COleSafeArray YValues;
COleVariant var1(CString("暗光参考样品光强"));
COleVariant var2(CString("白光参考样品光强"));
COleVariant var3(CString("样品光强"));
COleVariant var4(CString("样品吸光度"));
DWORD numElements[] = { nDATALENGTH };
XValues.Create(VT_R8, 1, numElements);
YValues.Create(VT_R8, 1, numElements);
float Coeff[5];
Coeff[0] = _tstof(m_Coef1);
Coeff[1] = _tstof(m_Coef1);
Coeff[2] = _tstof(m_Coef2);
Coeff[3] = _tstof(m_Coef3);
Coeff[4] = _tstof(m_Coef4);
CSeries lineSeries = (CSeries)m_chart.Series(0);
CAxis axis = (CAxis)m_chart.get_Axis();
CAxes axes = (CAxes)m_chart.get_Axis();
CAxis axisLeft = (CAxis)axes.get_Left();
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载