?? 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 + -