Author: gadamopoulos
Date: Fri Mar 31 18:18:19 2017
New Revision: 74252
URL:
http://svn.reactos.org/svn/reactos?rev=74252&view=rev
Log:
[DESK.CPL] -Load the TMT_FLATMENUS property from the theme and use SPI_SETFLATMENU to set
it.
Modified:
trunk/reactos/dll/cpl/desk/theme.c
Modified: trunk/reactos/dll/cpl/desk/theme.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/theme.c?rev=7…
==============================================================================
--- trunk/reactos/dll/cpl/desk/theme.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/theme.c [iso-8859-1] Fri Mar 31 18:18:19 2017
@@ -411,6 +411,8 @@
/* Hide underlined letters for keyboard navigation until I press the Alt key */
SYS_CONFIG(SPI_SETKEYBOARDCUES, 0,
IntToPtr(scheme->Effects.bKeyboardCues));
+ SYS_CONFIG(SPI_SETFLATMENU, 0, IntToPtr(scheme->bFlatMenus));
+
// SYS_CONFIG(SPI_SETACTIVEWINDOWTRACKING, 0,
IntToPtr(scheme->Effects.bActiveWindowTracking));
// SYS_CONFIG(SPI_SETCOMBOBOXANIMATION, 0,
IntToPtr(scheme->Effects.bComboBoxAnimation));
// SYS_CONFIG(SPI_SETLISTBOXSMOOTHSCROLLING, 0,
IntToPtr(scheme->Effects.bListBoxSmoothScrolling));
@@ -934,6 +936,8 @@
GetThemeSysFont(hTheme, TMT_MSGBOXFONT, &scheme->ncMetrics.lfMessageFont);
GetThemeSysFont(hTheme, TMT_ICONTITLEFONT, &scheme->icMetrics.lfFont);
+ scheme->bFlatMenus = GetThemeSysBool(hTheme, TMT_FLATMENUS);
+
CloseThemeData(hTheme);
return TRUE;