📄 jnsflatmaskedit.h
字号:
#if !defined(AFX_JnSFlatMaskEdit_H__14359840_EB52_11D5_A5F4_00E04C3AC61C__INCLUDED_)
#define AFX_JnSFlatMaskEdit_H__14359840_EB52_11D5_A5F4_00E04C3AC61C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// JnSFlatMaskEdit.h : header file
//
#pragma once
#include "JnSFlatEdit.h"
class JnSFlatMaskEdit : public JnSFlatEdit
{
public:
JnSFlatMaskEdit();
virtual ~JnSFlatMaskEdit();
void SetWindowText(LPCTSTR lpszString);
void setText(LPCTSTR pszText);
CString getText();
void setMask(LPCTSTR pszMask, char cPlaceHolder = '_');
CString getMask();
//{{AFX_VIRTUAL(JnSFlatMaskEdit)
//}}AFX_VIRTUAL
protected:
char m_cPlaceHolder;
CString m_strMaskText;
CString m_strSaveText;
bool m_bLastKeyWasDelete;
bool m_bLastKeyWasBackspace;
bool isMaskChar(int nPos);
int gotoNextEntryChar(int nPos);
bool getReplacementChar(int nPos, char cWant, char& cGet);
//{{AFX_MSG(JnSFlatMaskEdit)
afx_msg void OnUpdate();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
inline CString JnSFlatMaskEdit::getMask()
{
return m_strMaskText;
}
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_JnSFlatMaskEdit_H__14359840_EB52_11D5_A5F4_00E04C3AC61C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -