[PATCH 3/4] riched20: Add support for ENM_SCROLLEVENTS.

Huw Davies huw at codeweavers.com
Tue Mar 30 06:36:49 CDT 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=35650
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 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",
-- 
2.23.0




More information about the wine-devel mailing list