childview.h

来自「下面是串口通信开发的部分原码,自己写的,可能有些错误,希望大大家指教.」· C头文件 代码 · 共 58 行

H
58
字号
#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 + =
减小字号Ctrl + -
显示快捷键?