15,979
社区成员
发帖
与我相关
我的任务
分享
BOOL CTESETDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (WM_KEYFIRST <= pMsg->message && pMsg->message <= WM_KEYLAST)
{
if(pMsg->wParam==VK_RETURN )
{
HWND hWnd=::GetFocus();
int iID=::GetDlgCtrlID(hWnd);
if(iID==ID_DATETIME) //
{
AfxMessageBox("");//用户在ID_DATETIME控件上按下了回车
}
}
}
return CDialog::PreTranslateMessage(pMsg);
}