testserial0dlg.h

来自「一个好用的基于wince下的串口读写类」· C头文件 代码 · 共 59 行

H
59
字号
// TestSerial0Dlg.h : header file
//

#if !defined(AFX_TESTSERIAL0DLG_H__03B8CDEC_3166_4608_9BD7_1EB3FD4D69E4__INCLUDED_)
#define AFX_TESTSERIAL0DLG_H__03B8CDEC_3166_4608_9BD7_1EB3FD4D69E4__INCLUDED_

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

#include "Serial.h"

/////////////////////////////////////////////////////////////////////////////
// CTestSerial0Dlg dialog

class CTestSerial0Dlg : public CDialog
{
// Construction
public:
	
	CTestSerial0Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTestSerial0Dlg)
	enum { IDD = IDD_TESTSERIAL0_DIALOG };
	CButton	m_btnopen2;
	CComboBox	m_comboBandRate;
	CEdit	m_editSerial2;
	CEdit	m_editSerial1;
	CButton	m_btnopen;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;
	CSerial m_com1,m_com2;
//	TCHAR m_strcom1[10],m_strcom2[10];
	// Generated message map functions
	//{{AFX_MSG(CTestSerial0Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonOpen();
	afx_msg void OnReadPort(WPARAM wParam, LPARAM lParam);
	afx_msg void OnButtonOpen2();
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TESTSERIAL0DLG_H__03B8CDEC_3166_4608_9BD7_1EB3FD4D69E4__INCLUDED_)

⌨️ 快捷键说明

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