ReadSensorDlg.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // ReadSensorDlg.h : header file
  2. //
  3. #pragma once
  4. #include "afxcmn.h"
  5. #include "afxwin.h"
  6. // CReadSensorDlg dialog
  7. class CReadSensorDlg : public CDialogEx
  8. {
  9. // Construction
  10. public:
  11. CReadSensorDlg(CWnd* pParent = NULL); // standard constructor
  12. // Dialog Data
  13. enum { IDD = IDD_READSENSOR_DIALOG };
  14. protected:
  15. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  16. // Implementation
  17. protected:
  18. HICON m_hIcon;
  19. // Generated message map functions
  20. virtual BOOL OnInitDialog();
  21. afx_msg void OnPaint();
  22. afx_msg HCURSOR OnQueryDragIcon();
  23. DECLARE_MESSAGE_MAP()
  24. public:
  25. CRichEditCtrl m_richedit;
  26. CComboBox CB_Port;
  27. CEdit ED_PRESSURE;
  28. CEdit ED_TEM;
  29. CButton BTN_Loop;
  30. CEdit ED_LoopTime;
  31. afx_msg void OnBnClickedOpencomm();
  32. afx_msg void OnBnClickedReadPressure();
  33. afx_msg void OnBnClickedReadTem();
  34. afx_msg void OnBnClickedReadAll();
  35. afx_msg void OnBnClickedCheck1();
  36. afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam);
  37. afx_msg void OnTimer(UINT_PTR nIDEvent);
  38. afx_msg void OnEnChangeEdit3();
  39. afx_msg void OnBnClickedClear();
  40. afx_msg void OnBnClickedReflash();
  41. };