From 15355ab9a95a66aa6e1b580fac398ca1ad71f35d Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 8 Jul 2007 15:58:47 +0000 Subject: [PATCH] patch from Yaroslav Ponomarenko yarryp at gmail dot com Implement so spi_ msg works now with swamp mouse buttun, but it seam our msg quare does not support it yet or must we send a msg from spi msg we change the mouse buttun to notify the program. either way it is now partly supported by his patch svn path=/trunk/; revision=27484 --- reactos/subsystems/win32/win32k/ntuser/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/misc.c b/reactos/subsystems/win32/win32k/ntuser/misc.c index 94e7576d1c1..df101ba951b 100644 --- a/reactos/subsystems/win32/win32k/ntuser/misc.c +++ b/reactos/subsystems/win32/win32k/ntuser/misc.c @@ -967,6 +967,7 @@ IntSystemParametersInfo( case SPI_SETMOUSEHOVERHEIGHT: case SPI_SETMOUSE: case SPI_SETMOUSESPEED: + case SPI_SETMOUSEBUTTONSWAP: /* We will change something, so set the flag here */ bChanged = TRUE; case SPI_GETDESKWALLPAPER: @@ -1081,6 +1082,10 @@ IntSystemParametersInfo( CurInfo = IntGetSysCursorInfo(WinStaObject); CurInfo->MouseHoverHeight = uiParam; break; + case SPI_SETMOUSEBUTTONSWAP: + CurInfo = IntGetSysCursorInfo(WinStaObject); + CurInfo->SwapButtons = uiParam; + break; case SPI_SETMOUSE: CurInfo = IntGetSysCursorInfo(WinStaObject); CurInfo->CursorAccelerationInfo = *(PCURSORACCELERATION_INFO)pvParam;