mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:33:23 +00:00
[SHELL32] -CMenuBand: Correctly get the setting for flat menus. CORE-8925
svn path=/trunk/; revision=74467
This commit is contained in:
parent
74f6803499
commit
ec320d1e33
1 changed files with 2 additions and 8 deletions
|
@ -296,10 +296,7 @@ HRESULT CMenuToolbarBase::ShowDW(BOOL fShow)
|
|||
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 @@ HRESULT CMenuToolbarBase::CreateToolbar(HWND hwndParent, DWORD dwFlags)
|
|||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue