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

📄 testcom2dlg.h

📁 MSComm32.ocx串口通信程序。测试时不要用虚拟串口
💻 H
字号:
// TestCom2Dlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_TESTCOM2DLG_H__7EEB8859_5044_4143_A58C_D82C3E354CFD__INCLUDED_)
#define AFX_TESTCOM2DLG_H__7EEB8859_5044_4143_A58C_D82C3E354CFD__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTestCom2Dlg dialog

class CTestCom2Dlg : public CDialog
{
// Construction
public:
	CString SubItem(CString src, CString s[], CString split);
	char ConvertHexChar(char ch);
	int String2Hex(CString str, CByteArray &senddata);
	CTestCom2Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTestCom2Dlg)
	enum { IDD = IDD_TESTCOM2_DIALOG };
	CButton	m_ctrlHexDisplay;
	CButton	m_ctrlHexSend;
	int		m_Com;
	CMSComm	m_ctrlComm;
	CString	m_TxData;
	CString	m_RxData;
	CString	m_rate;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestCom2Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTestCom2Dlg)
	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 OnbtnOpen();
	afx_msg void OnbtnClose();
	afx_msg void OnbtnSend();
	afx_msg void OnbtnClear();
	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_TESTCOM2DLG_H__7EEB8859_5044_4143_A58C_D82C3E354CFD__INCLUDED_)

⌨️ 快捷键说明

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