📄 myrichctrl.h
字号:
#pragma once
// CMyRichCtrl
class CMyRichCtrl : public CRichEditCtrl
{
DECLARE_DYNAMIC(CMyRichCtrl)
public:
CMyRichCtrl();
virtual ~CMyRichCtrl();
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 void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
protected:
//CWinThread* pThread;
//static UINT ThreadFunc(LPVOID pParam);
//static void Check(LPVOID);
//bool modify;
//long cursorPos;
protected:
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -