Author: gadamopoulos
Date: Fri Mar 31 22:27:13 2017
New Revision: 74256
URL:
http://svn.reactos.org/svn/reactos?rev=74256&view=rev
Log:
[WIN32K] -Store the flat menus setting and the drop shadow setting in the
UserPreferencesMask registry value.
Modified:
trunk/reactos/win32ss/user/ntuser/sysparams.c
trunk/reactos/win32ss/user/ntuser/sysparams.h
Modified: trunk/reactos/win32ss/user/ntuser/sysparams.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/syspar…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/sysparams.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/sysparams.c [iso-8859-1] Fri Mar 31 22:27:13 2017
@@ -289,11 +289,9 @@
gspv.tmCaptionFont.tmAveCharWidth = 6;
gspv.bBeep = TRUE;
- gspv.bFlatMenu = FALSE;
gspv.uiFocusBorderWidth = 1;
gspv.uiFocusBorderHeight = 1;
gspv.bMenuDropAlign = 1;
- gspv.bDropShadow = 1;
gspv.dwMenuShowDelay = 100;
gspv.dwForegroundFlashCount = 3;
@@ -1624,16 +1622,16 @@
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:
- return SpiSetBool(&gspv.bFlatMenu, (BOOL)pvParam, KEY_MOUSE,
L"", fl);
+ return SpiSetUserPref(UPM_FLATMENU, pvParam, fl);
case SPI_GETDROPSHADOW:
- return SpiGetInt(pvParam, &gspv.bDropShadow, fl);
+ return SpiGetUserPref(UPM_DROPSHADOW, pvParam, fl);
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);
Modified: trunk/reactos/win32ss/user/ntuser/sysparams.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/syspar…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/sysparams.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/sysparams.h [iso-8859-1] Fri Mar 31 22:27:13 2017
@@ -29,6 +29,8 @@
UPM_TOOLTIPFADE = 0x1000,
UPM_CURSORSHADOW = 0x2000,
UPM_CLICKLOCK = 0x8000,
+ UPM_FLATMENU = 0x20000,
+ UPM_DROPSHADOW = 0x40000,
// room for more
UPM_UIEFFECTS = 0x80000000,
UPM_DEFAULT = 0x80003E9E
@@ -124,9 +126,7 @@
UINT uiFontSmoothingOrientation;
BOOL bDragFullWindows;
BOOL bMenuDropAlign;
- BOOL bFlatMenu;
DWORD dwMenuShowDelay;
- BOOL bDropShadow;
BOOL bBlockSendInputResets;
#if(_WIN32_WINNT >= 0x0600)
BOOL bClearType;