12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #include "MultiColorPlotCtrl.h"
- #define MAX_NUM 60
- // CDlg_RealTimeCurve 对话框
- class CDlg_RealTimeCurve : public CDialog
- {
- DECLARE_DYNAMIC(CDlg_RealTimeCurve)
- public:
- CDlg_RealTimeCurve(CWnd* pParent = NULL); // 标准构造函数
- virtual ~CDlg_RealTimeCurve();
- // 对话框数据
- enum { IDD = IDD_DLG_REALTIMECURVE };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnInitDialog();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnPaint();
- void Draw();
- void DrawHKedu(CDC* pDC, CRect rect, int nKedu, COLORREF clrKedu);
- void DrawVKedu(CDC* pDC, CRect rect, int nKedu, COLORREF clrKedu);
- void DrawCurve(CDC* pDC, CRect rect, int* data, COLORREF color);
- int m_nValue1[MAX_NUM];
- int m_nLowwer;
- int m_nUpper;
- int m_nLowerLimit;
- int m_nUpperLimit;
- CString m_sVarName;
- CString m_sVarDes;
- CMultiColorPlotCtrl m_ctrlMultiColorPlot;
- // 关键代码
- CRITICAL_SECTION g_cs ;
- CString m_sCurData;
- int getMin( int iLowwer );
- int getMax( int iUpper );
- };
|