mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 23:06:00 +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();
|
UpdateImageLists();
|
||||||
|
|
||||||
// For custom-drawing
|
// For custom-drawing
|
||||||
if (IsAppThemed())
|
SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
|
||||||
GetThemeSysBool(GetWindowTheme(m_hWnd), TMT_FLATMENUS);
|
|
||||||
else
|
|
||||||
SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
|
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -387,10 +384,7 @@ HRESULT CMenuToolbarBase::CreateToolbar(HWND hwndParent, DWORD dwFlags)
|
||||||
|
|
||||||
SetWindowTheme(m_hWnd, L"", L"");
|
SetWindowTheme(m_hWnd, L"", L"");
|
||||||
|
|
||||||
if (IsAppThemed())
|
SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
|
||||||
GetThemeSysBool(GetWindowTheme(m_hWnd), TMT_FLATMENUS);
|
|
||||||
else
|
|
||||||
SystemParametersInfo(SPI_GETFLATMENU, 0, &m_useFlatMenus, 0);
|
|
||||||
|
|
||||||
m_menuBand->AdjustForTheme(m_useFlatMenus);
|
m_menuBand->AdjustForTheme(m_useFlatMenus);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue