[ros-diffs] [greatlrd] 27484: 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

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Jul 8 17:58:48 CEST 2007


Author: greatlrd
Date: Sun Jul  8 19:58:47 2007
New Revision: 27484

URL: http://svn.reactos.org/svn/reactos?rev=27484&view=rev
Log:
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

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/misc.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/misc.c?rev=27484&r1=27483&r2=27484&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c Sun Jul  8 19:58:47 2007
@@ -967,6 +967,7 @@
       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 @@
                    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;




More information about the Ros-diffs mailing list