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

📄 instestdlg.h

📁 wince 下的串口编程
💻 H
字号:
// InsTestDlg.h : header file
//

#if !defined(AFX_INSTESTDLG_H__CD6B4CC4_5781_4000_ADEC_DED20E0CE44E__INCLUDED_)
#define AFX_INSTESTDLG_H__CD6B4CC4_5781_4000_ADEC_DED20E0CE44E__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CInsTestDlg dialog
#include "serial.h"
class CInsTestDlg : public CDialog
{
// Construction
public:
	void StrToByteArray(CString str, CByteArray * pByteArray, int nLen);
	CInsTestDlg(CWnd* pParent = NULL);	// standard constructor
	
	void		OnComReadData(BYTE *pDat, DWORD dwLen);
	CSerial *	GetSerialPort();

// Dialog Data
	//{{AFX_DATA(CInsTestDlg)
	enum { IDD = IDD_INSTEST_DIALOG };
	CButton	m_btndiscon;
	CButton	m_btncon;
	CEdit	m_EditRecCtrl;
	CString	m_editcom;
	CString	m_editsend;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON	m_hIcon;
	CSerial  m_serial;
	HANDLE  m_hThreadComRead;
	// Generated message map functions
	//{{AFX_MSG(CInsTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnClose();
	afx_msg void OnBtnCon();
	afx_msg void OnBtnDiscon();
	afx_msg void OnBtnSend();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_INSTESTDLG_H__CD6B4CC4_5781_4000_ADEC_DED20E0CE44E__INCLUDED_)

⌨️ 快捷键说明

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