BOOL CXXXXDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_KEYDOWN)
{
if(pMsg->wParam == VK_RETURN)
//处理回车
return CDialog::PreTranslateMessage(pMsg);
}
BOOL CYourDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message==WM_KEYDOWN)
{
if(pMsg->wParam == VK_RETURN)
//处理回车
return CDialog::PreTranslateMessage(pMsg);
}