From: Eric Kohl Date: Mon, 23 Apr 2018 21:58:07 +0000 (+0200) Subject: [SYSSETUP] PS2MousePropPageProvider: Use the UDN_DELTAPOS notification to change... X-Git-Tag: 0.4.9-RC~133 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=dd653de2510880a21aa960263b746f04d7d5f127 [SYSSETUP] PS2MousePropPageProvider: Use the UDN_DELTAPOS notification to change the input buffer size in steps of 10 --- 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;