龚建伟编著"VISUAL C++/TURBO C 串口通信编程实践"所附源代码,与大家分享.-----龚建伟技术主页www.gjwtech.com
源代码在线查看: scommtestdlg.h
// SCommTestDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_SCOMMTESTDLG_H__22F2B146_69C2_11D5_870E_00E04C3F78CA__INCLUDED_)
#define AFX_SCOMMTESTDLG_H__22F2B146_69C2_11D5_870E_00E04C3F78CA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CSCommTestDlg dialog
class CSCommTestDlg : public CDialog
{
// Construction
public:
CSCommTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSCommTestDlg)
enum { IDD = IDD_SCOMMTEST_DIALOG };
CMSComm m_ctrlComm;
CString m_strEditRXData;
CString m_strEditTXData;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSCommTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSCommTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnComm();
afx_msg void OnButtonManualsend();
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_SCOMMTESTDLG_H__22F2B146_69C2_11D5_870E_00E04C3F78CA__INCLUDED_)