SettingCmmDlg.h
上传用户:asikq0571
上传日期:2014-07-12
资源大小:528k
文件大小:2k
源码类别:

Internet/IE编程

开发平台:

Visual C++

  1. #if !defined(AFX_SETTINGCMMDLG_H__4F264507_3C37_4BE4_90C2_ACFF98D84F9D__INCLUDED_)
  2. #define AFX_SETTINGCMMDLG_H__4F264507_3C37_4BE4_90C2_ACFF98D84F9D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SettingCmmDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSettingCmmDlg dialog
  10. class CSettingCmmDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CSettingCmmDlg(CWnd* pParent = NULL);   // standard constructor
  15. // Dialog Data
  16. //{{AFX_DATA(CSettingCmmDlg)
  17. enum { IDD = IDD_SETTING_CMM };
  18. CIPAddressCtrl m_LocalIPAddr;
  19. CIPAddressCtrl m_RemoteIPAddr;
  20. CComboBox m_cPortName;
  21. int m_CmmType;
  22. int m_BaudRate;
  23. int m_StopBits;
  24. int m_ByteSize;
  25. int m_Parity;
  26. CString m_sPortName;
  27. int m_TCPIPPrtType;
  28. UINT m_RemoteIPPort;
  29. UINT m_LocalIPPort;
  30. //}}AFX_DATA
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CSettingCmmDlg)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. public:
  38. bool CheckComm(CString sPortName);
  39.     CString m_sRemoteIPAddr;
  40.     CString m_sLocalIPAddr;
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CSettingCmmDlg)
  45. virtual BOOL OnInitDialog();
  46. virtual void OnOK();
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. };
  50. //{{AFX_INSERT_LOCATION}}
  51. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  52. #endif // !defined(AFX_SETTINGCMMDLG_H__4F264507_3C37_4BE4_90C2_ACFF98D84F9D__INCLUDED_)