[DESK.CPL] -Load the TMT_FLATMENUS property from the theme and use SPI_SETFLATMENU...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 18:18:19 +0000 (18:18 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 18:18:19 +0000 (18:18 +0000)
svn path=/trunk/; revision=74252

reactos/dll/cpl/desk/theme.c

index e76c4e6..b2e5b7f 100644 (file)
@@ -411,6 +411,8 @@ ApplyScheme(IN COLOR_SCHEME *scheme, IN PTHEME_SELECTION pSelectedTheme)
     /* Hide underlined letters for keyboard navigation until I press the Alt key */
     SYS_CONFIG(SPI_SETKEYBOARDCUES,              0, IntToPtr(scheme->Effects.bKeyboardCues));
 
     /* 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));
     // 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 @@ LoadSchemeFromTheme(OUT PCOLOR_SCHEME scheme, IN PTHEME_SELECTION pSelectedTheme
     GetThemeSysFont(hTheme, TMT_MSGBOXFONT, &scheme->ncMetrics.lfMessageFont);
     GetThemeSysFont(hTheme, TMT_ICONTITLEFONT, &scheme->icMetrics.lfFont);
 
     GetThemeSysFont(hTheme, TMT_MSGBOXFONT, &scheme->ncMetrics.lfMessageFont);
     GetThemeSysFont(hTheme, TMT_ICONTITLEFONT, &scheme->icMetrics.lfFont);
 
+    scheme->bFlatMenus = GetThemeSysBool(hTheme, TMT_FLATMENUS);
+
     CloseThemeData(hTheme);
 
     return TRUE;
     CloseThemeData(hTheme);
 
     return TRUE;