// ReadSensorDlg.h : header file // #pragma once #include "afxcmn.h" #include "afxwin.h" // CReadSensorDlg dialog class CReadSensorDlg : public CDialogEx { // Construction public: CReadSensorDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_READSENSOR_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: HICON m_hIcon; // Generated message map functions virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: CRichEditCtrl m_richedit; CComboBox CB_Port; CEdit ED_PRESSURE; CEdit ED_TEM; CButton BTN_Loop; CEdit ED_LoopTime; afx_msg void OnBnClickedOpencomm(); afx_msg void OnBnClickedReadPressure(); afx_msg void OnBnClickedReadTem(); afx_msg void OnBnClickedReadAll(); afx_msg void OnBnClickedCheck1(); afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam); afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg void OnEnChangeEdit3(); afx_msg void OnBnClickedClear(); afx_msg void OnBnClickedReflash(); };