[SYSSETUP] PS2MousePropPageProvider: Use the UDN_DELTAPOS notification to change...
authorEric Kohl <eric.kohl@reactos.org>
Mon, 23 Apr 2018 21:58:07 +0000 (23:58 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 23 Apr 2018 21:58:49 +0000 (23:58 +0200)
dll/win32/syssetup/proppage.c

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