Author: gadamopoulos
Date: Wed May 3 21:49:38 2017
New Revision: 74467
URL:
http://svn.reactos.org/svn/reactos?rev=74467&view=rev
Log:
[SHELL32] -CMenuBand: Correctly get the setting for flat menus. CORE-8925
Modified:
trunk/reactos/dll/win32/shell32/shellmenu/CMenuToolbars.cpp
Modified: trunk/reactos/dll/win32/shell32/shellmenu/CMenuToolbars.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shellmen…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shellmenu/CMenuToolbars.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shellmenu/CMenuToolbars.cpp [iso-8859-1] Wed May 3
21:49:38 2017
@@ -296,10 +296,7 @@
UpdateImageLists();
// For custom-drawing
- if (IsAppThemed())
- GetThemeSysBool(GetWindowTheme(m_hWnd), TMT_FLATMENUS);
- else
- SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
+ SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
return S_OK;
}
@@ -387,10 +384,7 @@
SetWindowTheme(m_hWnd, L"", L"");
- if (IsAppThemed())
- GetThemeSysBool(GetWindowTheme(m_hWnd), TMT_FLATMENUS);
- else
- SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
+ SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
m_menuBand->AdjustForTheme(m_useFlatMenus);