ConfigDlg.h
上传用户:skyblue117
上传日期:2013-02-13
资源大小:53k
文件大小:2k
源码类别:

串口编程

开发平台:

Visual C++

  1. /*
  2. ** FILENAME ConfigDlg.cpp
  3. **
  4. ** PURPOSE Here the ports can be configured
  5. **
  6. ** CREATION DATE 15-09-1997
  7. ** LAST MODIFICATION 12-11-1997
  8. **
  9. ** AUTHOR Remon Spekreijse
  10. **
  11. */
  12. #if !defined(AFX_CONFIGDLG_H__E8DCAF4F_5B32_11D1_94BA_00805A147202__INCLUDED_)
  13. #define AFX_CONFIGDLG_H__E8DCAF4F_5B32_11D1_94BA_00805A147202__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. class CConfigDlg : public CDialog
  18. {
  19. public:
  20. CConfigDlg(CWnd* pParent = NULL);   // standard constructor
  21. CConfigDlg(CWnd* pParent, DCB dcb);
  22. //{{AFX_DATA(CConfigDlg)
  23. enum { IDD = IDD_CONFIGDIALOG };
  24. CString m_strBaudRate;
  25. CString m_strDataBits;
  26. CString m_strParity;
  27. CString m_strStopBits;
  28. BOOL m_CommBreakDetected;
  29. BOOL m_CommCTSDetected;
  30. BOOL m_CommDSRDetected;
  31. BOOL m_CommERRDetected;
  32. BOOL m_CommRingDetected;
  33. BOOL m_CommRLSDDetected;
  34. BOOL m_CommRxchar;
  35. BOOL m_CommRxcharFlag;
  36. BOOL m_CommTXEmpty;
  37. CString m_strSendBuffer;
  38. //}}AFX_DATA
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CConfigDlg)
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. protected:
  46. DCB m_dcb;
  47. // Generated message map functions
  48. //{{AFX_MSG(CConfigDlg)
  49. virtual BOOL OnInitDialog();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_CONFIGDLG_H__E8DCAF4F_5B32_11D1_94BA_00805A147202__INCLUDED_)