TestComDlg.h
上传用户:holocaust
上传日期:2022-06-17
资源大小:1871k
文件大小:2k
- // TestComDlg.h : header file
- //
- //{{AFX_INCLUDES()
- #include "mscomm.h"
- //}}AFX_INCLUDES
- #if !defined(AFX_TESTCOMDLG_H__8EB3AB52_2695_408D_A24A_66A6C43E52BB__INCLUDED_)
- #define AFX_TESTCOMDLG_H__8EB3AB52_2695_408D_A24A_66A6C43E52BB__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CTestComDlg dialog
- class CTestComDlg : public CDialog
- {
- // Construction
- public:
- int Char2Int(char a);
- // int SaveDataLen;
- CTestComDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CTestComDlg)
- enum { IDD = IDD_TESTCOM_DIALOG };
- CMSComm m_mscom;
- CString m_recv;
- CString m_send;
- char RxSaveData[100];
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTestComDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CTestComDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnSend();
- afx_msg void OnCommMscomm();
- afx_msg void OnClear();
- afx_msg void OnEsc();
- DECLARE_EVENTSINK_MAP()
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TESTCOMDLG_H__8EB3AB52_2695_408D_A24A_66A6C43E52BB__INCLUDED_)