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);}新聞熱點
疑難解答