SettingCmmDlg.h
上传用户:asikq0571
上传日期:2014-07-12
资源大小:528k
文件大小:2k
- #if !defined(AFX_SETTINGCMMDLG_H__4F264507_3C37_4BE4_90C2_ACFF98D84F9D__INCLUDED_)
- #define AFX_SETTINGCMMDLG_H__4F264507_3C37_4BE4_90C2_ACFF98D84F9D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // SettingCmmDlg.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CSettingCmmDlg dialog
- class CSettingCmmDlg : public CDialog
- {
- // Construction
- public:
- CSettingCmmDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CSettingCmmDlg)
- enum { IDD = IDD_SETTING_CMM };
- CIPAddressCtrl m_LocalIPAddr;
- CIPAddressCtrl m_RemoteIPAddr;
- CComboBox m_cPortName;
- int m_CmmType;
- int m_BaudRate;
- int m_StopBits;
- int m_ByteSize;
- int m_Parity;
- CString m_sPortName;
- int m_TCPIPPrtType;
- UINT m_RemoteIPPort;
- UINT m_LocalIPPort;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSettingCmmDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- public:
- bool CheckComm(CString sPortName);
- CString m_sRemoteIPAddr;
- CString m_sLocalIPAddr;
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CSettingCmmDlg)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SETTINGCMMDLG_H__4F264507_3C37_4BE4_90C2_ACFF98D84F9D__INCLUDED_)