📄 editlimit.cpp
字号:
// EditLimit.cpp : implementation file
//
#include "stdafx.h"
#include "Login.h"
#include "EditLimit.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEditLimit
CEditLimit::CEditLimit()
{
}
CEditLimit::~CEditLimit()
{
}
BEGIN_MESSAGE_MAP(CEditLimit, CEdit)
//{{AFX_MSG_MAP(CEditLimit)
ON_WM_CHAR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEditLimit message handlers
void CEditLimit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
//8为回格键(Back Space)
//65到90之间为大写字母
//97到122之间为小写字母
//48到57之间为数字
if (!((nChar == 8)
|| ((nChar >= 65) && (nChar <=90))
|| ((nChar >= 97) && (nChar <= 122))
|| ((nChar >= 48) && (nChar <= 57))))
{
return;
}
CEdit::OnChar(nChar, nRepCnt, nFlags);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -