From ea7ffd4b2a41e6280f258c66b8cf220b2b7aa7c4 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Sun, 10 Feb 2008 06:06:54 -0800 Subject: [PATCH] Scroll the textwindow when the mousewheel moves. [git-p4: depot-paths = "//depot/solvespace/": change = 1856] --- win32/w32main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/win32/w32main.cpp b/win32/w32main.cpp index 341cc30..bdfa5b9 100644 --- a/win32/w32main.cpp +++ b/win32/w32main.cpp @@ -441,6 +441,12 @@ done: break; } + case WM_MOUSEWHEEL: { + int delta = GET_WHEEL_DELTA_WPARAM(wParam); + HandleTextWindowScrollBar(delta > 0 ? SB_LINEUP : SB_LINEDOWN, 0); + break; + } + case WM_VSCROLL: HandleTextWindowScrollBar(wParam, lParam); break;