mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[SYSSETUP] PS2MousePropPageProvider: Use the UDN_DELTAPOS notification to change the input buffer size in steps of 10
This commit is contained in:
parent
955048e50a
commit
dd653de251
1 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue