https://git.reactos.org/?p=reactos.git;a=commitdiff;h=dd653de2510880a21aa96…
commit dd653de2510880a21aa960263b746f04d7d5f127
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Mon Apr 23 23:58:07 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Mon Apr 23 23:58:49 2018 +0200
[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 d200a841ea..eb38cf988f 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;