📄 memoedit.h
字号:
#if !defined(AFX_MEMOEDIT_H__ADA2FA95_BFD7_495A_A9D2_28477D2DB322__INCLUDED_)
#define AFX_MEMOEDIT_H__ADA2FA95_BFD7_495A_A9D2_28477D2DB322__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MemoEdit.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMemoEdit window
class CMemoEdit : public CRichEditCtrl
{
// Construction
public:
CMemoEdit();
// Attributes
public:
bool m_bUseMask; // true to use edit mask.
bool m_bMaskKeyInProgress; // true when
CString m_strWindowText; // buffer that holds the actual edit text.
CString m_strMask; // buffer that holds the actual edit mask value.
CString m_strLiteral;
CString m_strValid;
CString m_strMaskLiteral;
CFont m_Font;
// Operations
public:
void SetEditMask(LPCTSTR lpszMask, LPCTSTR lpszLiteral, LPCTSTR lpszWindowText);
void SendChar(UINT nChar);
bool CheckChar(UINT nChar);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMemoEdit)
//}}AFX_VIRTUAL
// virtual bool ProcessMask(UINT nChar, int nEndPos);
// Implementation
public:
virtual ~CMemoEdit();
void UpdateFont();
// Generated message map functions
protected:
//{{AFX_MSG(CMemoEdit)
// NOTE - the ClassWizard will add and remove member functions here.
// afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
// afx_msg void OnChar(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_MEMOEDIT_H__ADA2FA95_BFD7_495A_A9D2_28477D2DB322__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -