DefWindowProc should pass unhandled WM_MOUSEWHEEL to parent, according

to documentation.
This commit is contained in:
Ove Kaaven 2000-07-23 13:32:21 +00:00 committed by Alexandre Julliard
parent 91ae8cb23c
commit c27b6cf944
1 changed files with 8 additions and 0 deletions

View File

@ -331,6 +331,14 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
}
break;
case WM_MOUSEWHEEL:
if (wndPtr->dwStyle & WS_CHILD)
{
return SendMessageA( wndPtr->parent->hwndSelf,
WM_MOUSEWHEEL, wParam, lParam );
}
break;
case WM_ERASEBKGND:
case WM_ICONERASEBKGND:
{