LINE_CHART

所属分类:Windows编程
开发工具:Visual C++
文件大小:4KB
下载次数:21
上传日期:2008-06-30 13:39:32
上 传 者lmj
说明:  用于动态曲线绘制,压缩包内有使用说明。使用非常方便哦。
(For dynamic curve drawing, compression bag has instructions. Oh, very convenient to use.)

文件列表:
LINECHARTCTRL.CPP (5227, 1998-08-14)
LINECHARTCTRL.H (2279, 1998-08-14)

使用方法如下: 1. 在对话框编辑器中添加一个定制控件(Custom Control),输入LINE_CHART_CTRL作为其类名。 2. 添加下面类成员到头文件: #include "LineChartCtrl.h" ... CLineChartCtrl m_wndLineChart; 3. 在对话框的InitDialog()函数添加下面语句: //IDC_LINE_CHART_CTRL is the control ID m_wndLineChart.SubclassDlgItem(IDC_LINE_CHART_CTRL, this); 4. 初始化该控件: m_wndLineChart.Add(RGB(0,255,0),100, 0); m_wndLineChart.Add(RGB(255,255,0),100, 0); m_wndLineChart.Add(RGB(0,255,255),100, 0); SetTimer(1, 500, NULL); // Create a timer to update the control 5. 在OnTimer(UINT nIDEvent) 中添加下面代码: m_wndLineChart.SetPos(0,nPos0); // nPos0 is the currect postion m_wndLineChart.SetPos(1,nPos1); // nPos1 is the currect postion m_wndLineChart.SetPos(2,nPos2); // nPos2 is the currect postion m_wndLineChart.Go(); // Make sure that the control updates with the new value

近期下载者

相关文件


收藏者