summaryrefslogtreecommitdiffstats
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-16 21:59:56 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-16 21:59:56 +0000
commit520470a9d6afa273294848bc31e9ddfabe130434 (patch)
tree68eca1fa27b8113e3d4c9cbeeb4e72ec31e6dc6f /src/gui_w32.c
parent6bab4d1fd761c6489e63d53d7834344cb0d3a74e (diff)
updated for version 7.0086v7.0086
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 8046a8df0b..3ecedde106 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -498,6 +498,18 @@ _OnMouseWheel(
_OnScroll(hwnd, hwndCtl, zDelta >= 0 ? SB_PAGEUP : SB_PAGEDOWN, 0);
}
+/*
+ * Invoked when a setting was changed.
+ */
+ static LRESULT CALLBACK
+_OnSettingChange(UINT n)
+{
+ if (n == SPI_SETWHEELSCROLLLINES)
+ SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0,
+ &mouse_scroll_lines, 0);
+ return 0;
+}
+
#if 0 /* disabled, a gap appears below and beside the window, and the window
can be moved (in a strange way) */
/*
@@ -686,6 +698,10 @@ _WndProc(
_OnMouseWheel(hwnd, HIWORD(wParam));
break;
+ /* Notification for change in SystemParametersInfo() */
+ case WM_SETTINGCHANGE:
+ return _OnSettingChange((UINT)wParam);
+
#ifdef FEAT_TOOLBAR
case WM_NOTIFY:
switch (((LPNMHDR) lParam)->code)