[WIN32K] -Store the flat menus setting and the drop shadow setting in the UserPreferencesMask registry value.

svn path=/trunk/; revision=74256
This commit is contained in:
Giannis Adamopoulos 2017-03-31 22:27:13 +00:00
parent 0258ba9082
commit bf3b8cd273
2 changed files with 6 additions and 8 deletions

View file

@ -289,11 +289,9 @@ SpiUpdatePerUserSystemParameters(VOID)
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 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
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);

View file

@ -29,6 +29,8 @@ typedef enum _USERPREFMASKS
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 @@ typedef struct _SPIVALUES
UINT uiFontSmoothingOrientation;
BOOL bDragFullWindows;
BOOL bMenuDropAlign;
BOOL bFlatMenu;
DWORD dwMenuShowDelay;
BOOL bDropShadow;
BOOL bBlockSendInputResets;
#if(_WIN32_WINNT >= 0x0600)
BOOL bClearType;