From dd653de2510880a21aa960263b746f04d7d5f127 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 23 Apr 2018 23:58:07 +0200 Subject: [PATCH] [SYSSETUP] PS2MousePropPageProvider: Use the UDN_DELTAPOS notification to change the input buffer size in steps of 10 --- dll/win32/syssetup/proppage.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/dll/win32/syssetup/proppage.c b/dll/win32/syssetup/proppage.c index d200a841eaf..eb38cf988f6 100644 --- a/dll/win32/syssetup/proppage.c +++ b/dll/win32/syssetup/proppage.c @@ -188,6 +188,28 @@ MouseOnCommand( } +static +BOOL +MouseOnNotify( + HWND hwndDlg, + WPARAM wParam, + LPARAM lParam) +{ + switch (((LPNMHDR)lParam)->idFrom) + { + case IDC_PS2MOUSEINPUTUPDN: + if (((LPNMHDR)lParam)->code == UDN_DELTAPOS) + { + ((LPNMUPDOWN)lParam)->iDelta *= 10; + return FALSE; + } + break; + } + + return FALSE; +} + + static INT_PTR CALLBACK @@ -209,6 +231,9 @@ MouseDlgProc( MouseOnCommand(hwndDlg, wParam, lParam); break; + case WM_NOTIFY: + return MouseOnNotify(hwndDlg, wParam, lParam); + } return FALSE;