0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

updated for version 7.0086

This commit is contained in:
Bram Moolenaar
2005-06-16 21:59:56 +00:00
parent 6bab4d1fd7
commit 520470a9d6
11 changed files with 242 additions and 195 deletions

View File

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