⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serialtestdlg.h

📁 这是一个简单的串口通讯程序适用于初学者
💻 H
字号:
// SerialTestDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_SERIALTESTDLG_H__A38184C0_AC23_490C_9F20_7C0251946A43__INCLUDED_)
#define AFX_SERIALTESTDLG_H__A38184C0_AC23_490C_9F20_7C0251946A43__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSerialTestDlg dialog

class CSerialTestDlg : public CDialog
{
// Construction
public:
	CSerialTestDlg(CWnd* pParent = NULL);	// standard constructor
    CMSComm m_ComSend;
	CMSComm m_ComReceive;
// Dialog Data
	//{{AFX_DATA(CSerialTestDlg)
	enum { IDD = IDD_SERIALTEST_DIALOG };
	CListBox	m_Eidt;
	CButton	m_Send;
	CString	m_Receive;
	CString	m_SendEdit;
	//}}AFX_DATA
    int InitialCom(CMSComm *m_Com,UINT nID,int i);
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSerialTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
    
// Implementation
protected:
	HICON m_hIcon;
    
	// Generated message map functions
	//{{AFX_MSG(CSerialTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSendButton();
	afx_msg void OnCommReceive();
	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_SERIALTESTDLG_H__A38184C0_AC23_490C_9F20_7C0251946A43__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -