DlgComport.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #ifndef AFX_COMPORTDLG_H_
  2. #define AFX_COMPORTDLG_H_
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CDlgComport dialog
  5. class CDlgComport : public CPropertyPage
  6. {
  7. DECLARE_DYNCREATE(CDlgComport)
  8. // Construction
  9. public:
  10. CDlgComport();
  11. ~CDlgComport();
  12. // Dialog Data
  13. //{{AFX_DATA(CDlgComport)
  14. enum { IDD = IDD_DLG_ADD_DEV_SECOND };
  15. //}}AFX_DATA
  16. // Overrides
  17. // ClassWizard generate virtual function overrides
  18. //{{AFX_VIRTUAL(CDlgComport)
  19. protected:
  20. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  21. //}}AFX_VIRTUAL
  22. // Implementation
  23. protected:
  24. // Generated message map functions
  25. //{{AFX_MSG(CDlgComport)
  26. //}}AFX_MSG
  27. DECLARE_MESSAGE_MAP()
  28. public:
  29. // 设备UID
  30. CString m_strUID;
  31. // 设备名称
  32. CString m_strDevName;
  33. //设备所属区域
  34. CString m_strDevArea;
  35. // 通讯超时
  36. int m_nTimeout;
  37. int m_nDevAddr;
  38. // 串行端口
  39. int m_nCommPort;
  40. int m_nRate;
  41. int m_nCheckCode;
  42. // 网络设备IP
  43. DWORD m_nNetIP;
  44. int m_nNetPort;
  45. CString m_strReserved6; // 预留6
  46. CString m_strReserved7; // 预留7
  47. CString m_strReserved8; // 预留8
  48. CString m_strReserved9; // 预留9
  49. CString m_strReserved10; // 预留10
  50. int m_nReserved6; // 预留6
  51. int m_nReserved7; // 预留7
  52. int m_nReserved8; // 预留8
  53. int m_nReserved9; // 预留9
  54. int m_nReserved10; // 预留10
  55. BOOL m_bReserved6; // 预留6
  56. BOOL m_bReserved7; // 预留7
  57. BOOL m_bReserved8; // 预留8
  58. BOOL m_bReserved9; // 预留9
  59. BOOL m_bReserved10; // 预留10
  60. // 设备通信方式 0: 串口, 1:网络
  61. int m_nCommunicateMode;
  62. virtual BOOL OnSetActive();
  63. virtual BOOL OnInitDialog();
  64. BOOL m_nDataBit;
  65. int m_nStopBit;
  66. virtual LRESULT OnWizardBack();
  67. // 设备UID2 編輯設備更改類型,串口號
  68. CString m_strUID2;
  69. void ChangeCtrlState( bool bStu2000=false );
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_COMPORTDLG_H_)