[SYSSETUP] PS2MousePropPageProvider: Use the UDN_DELTAPOS notification to change the input buffer size in steps of 10

This commit is contained in:
Eric Kohl 2018-04-23 23:58:07 +02:00
parent 955048e50a
commit dd653de251

View file

@ -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 static
INT_PTR INT_PTR
CALLBACK CALLBACK
@ -209,6 +231,9 @@ MouseDlgProc(
MouseOnCommand(hwndDlg, wParam, lParam); MouseOnCommand(hwndDlg, wParam, lParam);
break; break;
case WM_NOTIFY:
return MouseOnNotify(hwndDlg, wParam, lParam);
} }
return FALSE; return FALSE;