BOOL CLogin::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message == WM_KEYDOWN && //落键
( GetFocus() == GetDlgItem(IDC_EDT_PASSWORD)) )
{
//处理(int) wParam;
if (pMsg->wParam == 13)
{
OnBtnOK();
}
}
return CUIWnd::PreTranslateMessage(pMsg);
}
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message == WM_KEYDOWN && //落键
( GetFocus() == GetDlgItem(IDC_EDT_PASSWORD)) )
{
//处理(int) wParam;
if (pMsg->wParam == 13)
{
OnBtnOK();
}
}
return CUIWnd::PreTranslateMessage(pMsg);
}