12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef AFX_COMPORTDLG_H_
- #define AFX_COMPORTDLG_H_
- /////////////////////////////////////////////////////////////////////////////
- // CDlgComport dialog
- class CDlgComport : public CPropertyPage
- {
- DECLARE_DYNCREATE(CDlgComport)
- // Construction
- public:
- CDlgComport();
- ~CDlgComport();
- // Dialog Data
- //{{AFX_DATA(CDlgComport)
- enum { IDD = IDD_DLG_ADD_DEV_SECOND };
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CDlgComport)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CDlgComport)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- // 设备UID
- CString m_strUID;
- // 设备名称
- CString m_strDevName;
- //设备所属区域
- CString m_strDevArea;
- // 通讯超时
- int m_nTimeout;
- int m_nDevAddr;
- // 串行端口
- int m_nCommPort;
- int m_nRate;
- int m_nCheckCode;
- // 网络设备IP
- DWORD m_nNetIP;
- int m_nNetPort;
- CString m_strReserved6; // 预留6
- CString m_strReserved7; // 预留7
- CString m_strReserved8; // 预留8
- CString m_strReserved9; // 预留9
- CString m_strReserved10; // 预留10
- int m_nReserved6; // 预留6
- int m_nReserved7; // 预留7
- int m_nReserved8; // 预留8
- int m_nReserved9; // 预留9
- int m_nReserved10; // 预留10
- BOOL m_bReserved6; // 预留6
- BOOL m_bReserved7; // 预留7
- BOOL m_bReserved8; // 预留8
- BOOL m_bReserved9; // 预留9
- BOOL m_bReserved10; // 预留10
- // 设备通信方式 0: 串口, 1:网络
- int m_nCommunicateMode;
- virtual BOOL OnSetActive();
- virtual BOOL OnInitDialog();
- BOOL m_nDataBit;
- int m_nStopBit;
- virtual LRESULT OnWizardBack();
- // 设备UID2 編輯設備更改類型,串口號
- CString m_strUID2;
- void ChangeCtrlState( bool bStu2000=false );
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_COMPORTDLG_H_)
|