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

📄 childview.h

📁 下面是串口通信开发的部分原码,自己写的,可能有些错误,希望大大家指教.
💻 H
字号:
#ifndef __CHILDVIEW_H
#define __CHILDVIEW_H


/////////////////////////////////////////////////////////////////////////////
// Include headerfiles

#include "SerialMFC.h"
#include "RichCommEdit.h"


/////////////////////////////////////////////////////////////////////////////
// CChildView window

class CChildView : public CWnd
{
public:
	// Construction
	CChildView();
	virtual ~CChildView();

public:
	// Attributes
	CRichCommEdit	m_wndEdit;
	CSerialMFC		m_serial;

public:
	// Overrides

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChildView)
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

protected:
	// Generated message map functions

	//{{AFX_MSG(CChildView)
	afx_msg void OnComSettings();
	afx_msg void OnUpdateComSettings(CCmdUI* pCmdUI);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	afx_msg LRESULT OnSerialMsg (WPARAM wParam, LPARAM lParam);

protected:
	// Implementation
	void DisplayEvent (LPCTSTR lpszMsg);
	void DisplayEventSetting (LPCTSTR lpszMsg, LPCTSTR lpszSetting, bool fOn);
	void DisplayData (LPCTSTR pszData);

	DECLARE_MESSAGE_MAP()
};


#endif // __CHILDVIEW_H

⌨️ 快捷键说明

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