myricheditctrl.h

来自「这是我仿照串口助手(龚建伟)作的一个例子并修正了其中的一些bug」· C头文件 代码 · 共 57 行

H
57
字号
#if !defined(AFX_MYRICHEDITCTRL_H__C4DB9CEB_6D3E_473A_8855_BC7A3E99FB2C__INCLUDED_)
#define AFX_MYRICHEDITCTRL_H__C4DB9CEB_6D3E_473A_8855_BC7A3E99FB2C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyRichEditCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMyRichEditCtrl window
#include "MyRichEdit.h"
class CMyRichEditCtrl : public CMyRichEdit 
{
// Construction
public:
	CMyRichEditCtrl();
    void SelFont()
	{
		OnSelectfont();
	}
// Attributes
public:

// Operations
public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyRichEditCtrl)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMyRichEditCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMyRichEditCtrl)
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnCopy() { Copy(); }
	afx_msg void OnCut() { Cut(); }
	afx_msg void OnPaste() { Paste(); }
	afx_msg void OnSelectall() { SetSel(0, -1); }
	afx_msg void OnUndo() { Undo(); }
	afx_msg void OnClear() { Clear(); }
	afx_msg void OnSelectfont();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_MYRICHEDITCTRL_H__C4DB9CEB_6D3E_473A_8855_BC7A3E99FB2C__INCLUDED_)

⌨️ 快捷键说明

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