标签:bsp 程序 turn cas log pre key enter return
重载对话框的PreTranslateMessage函数
BOOL ?Dlg::PreTranslateMessage(MSG* pMsg)
{
if(WM_KEYDOWN == pMsg->message)
{
switch(pMsg->wParam)
{
case VK_RETURN: //屏蔽ENTER
case VK_ESCAPE: //屏蔽ESC
return TRUE;
}
}
return CDialog::PreTranslateMessage(pMsg);
}
标签:bsp 程序 turn cas log pre key enter return
原文地址:http://www.cnblogs.com/dailycode/p/7727005.html