Huw Davies : riched20: Add support for ENM_SCROLLEVENTS.
Alexandre Julliard
julliard at winehq.org
Tue Mar 30 15:19:50 CDT 2021
Module: wine
Branch: master
Commit: de1398ef3817a8d3424c7834a27519f034939725
URL: https://source.winehq.org/git/wine.git/?a=commit;h=de1398ef3817a8d3424c7834a27519f034939725
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Mar 30 12:36:49 2021 +0100
riched20: Add support for ENM_SCROLLEVENTS.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=35650
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/riched20/txthost.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/riched20/txthost.c b/dlls/riched20/txthost.c
index a7b91716dab..6d2221e4d69 100644
--- a/dlls/riched20/txthost.c
+++ b/dlls/riched20/txthost.c
@@ -1097,7 +1097,8 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
}
if ((((host->event_mask & ENM_KEYEVENTS) && msg >= WM_KEYFIRST && msg <= WM_KEYLAST) ||
- ((host->event_mask & ENM_MOUSEEVENTS) && msg >= WM_MOUSEFIRST && msg <= WM_MOUSELAST)) &&
+ ((host->event_mask & ENM_MOUSEEVENTS) && msg >= WM_MOUSEFIRST && msg <= WM_MOUSELAST) ||
+ ((host->event_mask & ENM_SCROLLEVENTS) && msg >= WM_HSCROLL && msg <= WM_VSCROLL)) &&
send_msg_filter( host, msg, &wparam, &lparam ))
{
TRACE( "exit (filtered) hwnd %p msg %04x (%s) %lx %lx -> %lu\n",
More information about the wine-cvs
mailing list