BOOL CXXXDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if(pMsg->hwnd==GetDlgItem(IDC_SPEED_TEXT)->GetSafeHwnd() && pMsg->message==WM_MOUSEWHEEL) { //处理 } return CDialog::PreTranslateMessage(pMsg); }
BOOL CXXXDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if(pMsg->hwnd==GetDlgItem(ID_BUTTON1)->GetSafeHwnd() && pMsg->message==WM_MOUSEWHEEL) { //处理 } return CDialog::PreTranslateMessage(pMsg); }
BOOL CXXXDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if(pMsg->hwnd==GetDlgItem(ID_BUTTON1)->GetSafeHwnd() && pMsg->message==WM_MOUSEWHEEL) { PostMessage(WM_MOUSEWHEEL, pMsg->Wparam, pMsg->Lparam); } return CDialog::PreTranslateMessage(pMsg); }
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->hwnd==GetDlgItem(IDC_SPEED_TEXT)->GetSafeHwnd() && pMsg->message==WM_MOUSEWHEEL)
{
//处理
}
return CDialog::PreTranslateMessage(pMsg);
}
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->hwnd==GetDlgItem(ID_BUTTON1)->GetSafeHwnd() && pMsg->message==WM_MOUSEWHEEL)
{
//处理
}
return CDialog::PreTranslateMessage(pMsg);
}
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->hwnd==GetDlgItem(ID_BUTTON1)->GetSafeHwnd() && pMsg->message==WM_MOUSEWHEEL)
{
PostMessage(WM_MOUSEWHEEL, pMsg->Wparam, pMsg->Lparam);
}
return CDialog::PreTranslateMessage(pMsg);
}