Scroll the textwindow when the mousewheel moves.

[git-p4: depot-paths = "//depot/solvespace/": change = 1856]
solver
Jonathan Westhues 2008-02-10 06:06:54 -08:00
parent ddf2b30b98
commit ea7ffd4b2a
1 changed files with 6 additions and 0 deletions

View File

@ -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;