Author: gadamopoulos
Date: Sat Jun 17 07:43:52 2017
New Revision: 75072
URL:
http://svn.reactos.org/svn/reactos?rev=75072&view=rev
Log:
[SHELL32] -CMenuBand: forward WM_WININICHANGE to CMenuToolbarBase so that when themes get
enabled, the menu bar in explorer becomes flat immediately.
Modified:
trunk/reactos/dll/win32/shell32/shellmenu/CMenuBand.cpp
trunk/reactos/dll/win32/shell32/shellmenu/CMenuToolbars.cpp
Modified: trunk/reactos/dll/win32/shell32/shellmenu/CMenuBand.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shellmen…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shellmenu/CMenuBand.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shellmenu/CMenuBand.cpp [iso-8859-1] Sat Jun 17
07:43:52 2017
@@ -720,6 +720,13 @@
BOOL bFlatMenus;
SystemParametersInfo(SPI_GETFLATMENU, 0, &bFlatMenus, 0);
AdjustForTheme(bFlatMenus);
+
+ if (m_staticToolbar)
+ m_staticToolbar->OnWinEvent(hWnd, uMsg, wParam, lParam, theResult);
+
+ if (m_SFToolbar)
+ m_SFToolbar->OnWinEvent(hWnd, uMsg, wParam, lParam, theResult);
+
return S_OK;
}
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] Sat Jun 17
07:43:52 2017
@@ -113,6 +113,11 @@
return S_OK;
}
return S_FALSE;
+ case WM_WININICHANGE:
+ if (wParam == SPI_SETFLATMENU)
+ {
+ SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
+ }
}
return S_FALSE;