📄 ownedit.h
字号:
#if !defined(AFX_OWNEDIT_H__549E7241_5172_11D6_B545_00E04C104C2B__INCLUDED_)
#define AFX_OWNEDIT_H__549E7241_5172_11D6_B545_00E04C104C2B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OwnEdit.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// COwnEdit window
//自己定义的CEdit的派生类,主要是为了截断控件CEdit中的上下文菜单,
//不允许用户编辑内容,和实现自动换行显示
class COwnEdit : public CEdit
{
// Construction
public:
COwnEdit();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COwnEdit)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~COwnEdit();
// Generated message map functions
protected:
CMenu* m_pMenu;
//{{AFX_MSG(COwnEdit)
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnCopy();
afx_msg void OnSelectAll();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OWNEDIT_H__549E7241_5172_11D6_B545_00E04C104C2B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -