BOOL CTmpMFCView::PreTranslateMessage(MSG* pMsg)  
{
// TODO: Add your specialized code here and/or call the base class if( pMsg->message == WM_KEYUP)
{
if(pMsg->lParam >>31 !=0 )
{
AfxMessageBox("keydown");
return TRUE; 
}
}
return CView::PreTranslateMessage(pMsg);
}
lParam 是32位值,右移动31位后,不是0就是1阿。
if(pMsg->lParam >>31 !=0 )这样程序运行能跳出对话框。
但if(pMsg->lParam >>31 ==1 )就不行了。
why?