[WIN32K] -Store the flat menus setting and the drop shadow setting in the UserPrefere...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 22:27:13 +0000 (22:27 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 22:27:13 +0000 (22:27 +0000)
svn path=/trunk/; revision=74256

reactos/win32ss/user/ntuser/sysparams.c
reactos/win32ss/user/ntuser/sysparams.h

index 6865efd..ab04126 100644 (file)
@@ -289,11 +289,9 @@ SpiUpdatePerUserSystemParameters(VOID)
 
     gspv.tmCaptionFont.tmAveCharWidth = 6;
     gspv.bBeep = TRUE;
 
     gspv.tmCaptionFont.tmAveCharWidth = 6;
     gspv.bBeep = TRUE;
-    gspv.bFlatMenu = FALSE;
     gspv.uiFocusBorderWidth = 1;
     gspv.uiFocusBorderHeight = 1;
     gspv.bMenuDropAlign = 1;
     gspv.uiFocusBorderWidth = 1;
     gspv.uiFocusBorderHeight = 1;
     gspv.bMenuDropAlign = 1;
-    gspv.bDropShadow = 1;
     gspv.dwMenuShowDelay = 100;
     gspv.dwForegroundFlashCount = 3;
 
     gspv.dwMenuShowDelay = 100;
     gspv.dwForegroundFlashCount = 3;
 
@@ -1624,16 +1622,16 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
             return SpiSetBool(&gspv.bMouseVanish, uiParam, KEY_MOUSE, L"", fl);
 
         case SPI_GETFLATMENU:
             return SpiSetBool(&gspv.bMouseVanish, uiParam, KEY_MOUSE, L"", fl);
 
         case SPI_GETFLATMENU:
-            return SpiGetInt(pvParam, &gspv.bFlatMenu, fl);
+            return SpiGetUserPref(UPM_FLATMENU, pvParam, fl);
 
         case SPI_SETFLATMENU:
 
         case SPI_SETFLATMENU:
-            return SpiSetBool(&gspv.bFlatMenu, (BOOL)pvParam, KEY_MOUSE, L"", fl);
+            return SpiSetUserPref(UPM_FLATMENU, pvParam, fl);
 
         case SPI_GETDROPSHADOW:
 
         case SPI_GETDROPSHADOW:
-            return SpiGetInt(pvParam, &gspv.bDropShadow, fl);
+            return SpiGetUserPref(UPM_DROPSHADOW, pvParam, fl);
 
         case SPI_SETDROPSHADOW:
 
         case SPI_SETDROPSHADOW:
-            return SpiSetBool(&gspv.bDropShadow, uiParam, KEY_MOUSE, L"", fl);
+            return SpiSetUserPref(UPM_DROPSHADOW, pvParam, fl);
 
         case SPI_GETBLOCKSENDINPUTRESETS:
             return SpiGetInt(pvParam, &gspv.bBlockSendInputResets, fl);
 
         case SPI_GETBLOCKSENDINPUTRESETS:
             return SpiGetInt(pvParam, &gspv.bBlockSendInputResets, fl);
index 9a81b69..28e9d94 100644 (file)
@@ -29,6 +29,8 @@ typedef enum _USERPREFMASKS
     UPM_TOOLTIPFADE = 0x1000,
     UPM_CURSORSHADOW = 0x2000,
     UPM_CLICKLOCK = 0x8000,
     UPM_TOOLTIPFADE = 0x1000,
     UPM_CURSORSHADOW = 0x2000,
     UPM_CLICKLOCK = 0x8000,
+    UPM_FLATMENU = 0x20000,
+    UPM_DROPSHADOW = 0x40000,
     // room for more
     UPM_UIEFFECTS = 0x80000000,
     UPM_DEFAULT = 0x80003E9E
     // room for more
     UPM_UIEFFECTS = 0x80000000,
     UPM_DEFAULT = 0x80003E9E
@@ -124,9 +126,7 @@ typedef struct _SPIVALUES
     UINT uiFontSmoothingOrientation;
     BOOL bDragFullWindows;
     BOOL bMenuDropAlign;
     UINT uiFontSmoothingOrientation;
     BOOL bDragFullWindows;
     BOOL bMenuDropAlign;
-    BOOL bFlatMenu;
     DWORD dwMenuShowDelay;
     DWORD dwMenuShowDelay;
-    BOOL bDropShadow;
     BOOL bBlockSendInputResets;
 #if(_WIN32_WINNT >= 0x0600)
     BOOL bClearType;
     BOOL bBlockSendInputResets;
 #if(_WIN32_WINNT >= 0x0600)
     BOOL bClearType;