MFC 非常简单好用的一个 波形图控件

上传者: jy02231674 | 上传时间: 2021-07-22 09:06:01 | 文件大小: 104KB | 文件类型: RAR
一个非常好用的MFC 曲线控件 在CDialog.h中定义控件 CChartCtrl m_cChartFx; 在CDialog.cpp中 绑定控件 DDX_Control(pDX, IDC_STATIC_FY, m_cChartFy); 初始化控件 CChartAxis *pAxis = NULL; pAxis = m_cChartFx.CreateStandardAxis(CChartCtrl::BottomAxis); pAxis->SetAutomatic(true); pAxis = m_cChartFx.CreateStandardAxis(CChartCtrl::LeftAxis); pAxis->SetAutomatic(true); m_cChartFx.GetTitle()->AddString(L"value_FX "); m_cChartFx.GetLeftAxis()->GetLabel()->SetText(L"单位:N"); m_cChartFx.GetBottomAxis()->GetLabel()->SetText(L"单位时间"); m_cChartFx.EnableRefresh(false); m_cChartFx.RemoveAllSeries();//先清空 pLineSerie1Fx = m_cChartFx.CreateLineSerie(); //创建一个曲线 m_cChartFx.EnableRefresh(true); m_cChartFx.SetBackColor(RGB(200, 200, 200)); pLineSerie1Fx->AddPoints(x, theApp.m_SaveDataFy, theApp.m_index); //画数据点

文件下载

资源详情

[{"title":"( 58 个子文件 104KB ) MFC 非常简单好用的一个 波形图控件","children":[{"title":"chart","children":[{"title":"ChartAxis.h <span style='color:#111;'> 17.05KB </span>","children":null,"spread":false},{"title":"ChartCtrl.cpp <span style='color:#111;'> 30.45KB </span>","children":null,"spread":false},{"title":"ChartSeriesMouseListener.h <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"ChartSerie.h <span style='color:#111;'> 9.31KB </span>","children":null,"spread":false},{"title":"ChartScrollBar.h <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"ChartString.h <span style='color:#111;'> 932B </span>","children":null,"spread":false},{"title":"ChartAxisLabel.cpp <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"ChartSurfaceSerie.h <span style='color:#111;'> 4.11KB </span>","children":null,"spread":false},{"title":"ChartCursor.h <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"ChartLogarithmicAxis.h <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"ChartXYSerie.h <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false},{"title":"ChartCandlestickSerie.cpp <span style='color:#111;'> 6.92KB </span>","children":null,"spread":false},{"title":"ChartCrossHairCursor.cpp <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"ChartGradient.h <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"ChartGanttSerie.cpp <span style='color:#111;'> 5.69KB </span>","children":null,"spread":false},{"title":"ChartCursor.cpp <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"ChartDateTimeAxis.h <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false},{"title":"ChartFont.cpp <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"ChartCtrl.h <span style='color:#111;'> 20.62KB </span>","children":null,"spread":false},{"title":"ChartAxis.cpp <span style='color:#111;'> 18.81KB </span>","children":null,"spread":false},{"title":"ChartLineSerie.h <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"ChartLabel.h <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"ChartBalloonLabel.h <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false},{"title":"ChartAxisLabel.h <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"ChartPointsSerie.cpp <span style='color:#111;'> 8.53KB </span>","children":null,"spread":false},{"title":"ChartSerie.cpp <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"ChartScrollBar.cpp <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"ChartFont.h <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"ChartStandardAxis.h <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"ChartDragLineCursor.h <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"ChartXYSerie.cpp <span style='color:#111;'> 4.97KB </span>","children":null,"spread":false},{"title":"ChartGrid.h <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"PointsOrdering.h <span style='color:#111;'> 917B </span>","children":null,"spread":false},{"title":"ChartSerieBase.h <span style='color:#111;'> 7.32KB </span>","children":null,"spread":false},{"title":"ChartTitle.h <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false},{"title":"ChartStandardAxis.cpp <span style='color:#111;'> 4.75KB </span>","children":null,"spread":false},{"title":"ChartGrid.cpp <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"ChartLegend.h <span style='color:#111;'> 4.74KB </span>","children":null,"spread":false},{"title":"ChartLegend.cpp <span style='color:#111;'> 8.89KB </span>","children":null,"spread":false},{"title":"ChartGanttSerie.h <span style='color:#111;'> 4.89KB </span>","children":null,"spread":false},{"title":"ChartPointsArray.h <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false},{"title":"ChartLineSerie.cpp <span style='color:#111;'> 9.59KB </span>","children":null,"spread":false},{"title":"ChartCrossHairCursor.h <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"ChartDragLineCursor.cpp <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"ChartSerieBase.inl <span style='color:#111;'> 7.99KB </span>","children":null,"spread":false},{"title":"ChartBalloonLabel.inl <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"ChartGradient.cpp <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"ChartCandlestickSerie.h <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"ChartDateTimeAxis.cpp <span style='color:#111;'> 10.27KB </span>","children":null,"spread":false},{"title":"ChartTitle.cpp <span style='color:#111;'> 4.72KB </span>","children":null,"spread":false},{"title":"ChartMouseListener.h <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"ChartLogarithmicAxis.cpp <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false},{"title":"ChartBarSerie.h <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false},{"title":"ChartSurfaceSerie.cpp <span style='color:#111;'> 7.03KB </span>","children":null,"spread":false},{"title":"ChartPointsArray.inl <span style='color:#111;'> 8.14KB </span>","children":null,"spread":false},{"title":"ChartPointsSerie.h <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"ChartBarSerie.cpp <span style='color:#111;'> 9.55KB </span>","children":null,"spread":false},{"title":"ChartLabel.inl <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明