MFC 子窗体响应鼠标滚轮消息
flyfish
在父窗口重写 PReTranslateMessage
BOOL CDlgX::PreTranslateMessage(MSG* pMsg){ if ( pMsg->message == WM_MOUSEWHEEL) { POINT pos; GetCursorPos(&pos); pMsg->hwnd = WindowFromPoint(pos)->GetSafeHwnd(); } return CDialog::PreTranslateMessage(pMsg);}新闻热点
疑难解答