mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
[SHELL32] -CMenuBand: When the flat menus style is enabled, shell menu bars should not look like toolbars.
svn path=/trunk/; revision=75058
This commit is contained in:
parent
8c8f34f7fd
commit
3770c2d134
1 changed files with 6 additions and 3 deletions
|
@ -160,7 +160,10 @@ HRESULT CMenuToolbarBase::OnCustomDraw(LPNMTBCUSTOMDRAW cdraw, LRESULT * theResu
|
|||
isHot = m_hotBar == this && (int) cdraw->nmcd.dwItemSpec == m_hotItem;
|
||||
isPopup = m_popupBar == this && (int) cdraw->nmcd.dwItemSpec == m_popupItem;
|
||||
|
||||
if ((m_initFlags & SMINIT_VERTICAL))
|
||||
if (m_hotItem < 0 && isPopup)
|
||||
isHot = TRUE;
|
||||
|
||||
if ((m_useFlatMenus && isHot) || (m_initFlags & SMINIT_VERTICAL))
|
||||
{
|
||||
COLORREF clrText;
|
||||
HBRUSH bgBrush;
|
||||
|
@ -171,7 +174,7 @@ HRESULT CMenuToolbarBase::OnCustomDraw(LPNMTBCUSTOMDRAW cdraw, LRESULT * theResu
|
|||
cdraw->nmcd.uItemState &= ~(CDIS_HOT | CDIS_CHECKED);
|
||||
|
||||
// Decide on the colors
|
||||
if (isHot || (m_hotItem < 0 && isPopup))
|
||||
if (isHot)
|
||||
{
|
||||
cdraw->nmcd.uItemState |= CDIS_HOT;
|
||||
|
||||
|
@ -203,7 +206,7 @@ HRESULT CMenuToolbarBase::OnCustomDraw(LPNMTBCUSTOMDRAW cdraw, LRESULT * theResu
|
|||
cdraw->nmcd.uItemState &= ~CDIS_HOT;
|
||||
|
||||
// Decide on the colors
|
||||
if (isHot || (m_hotItem < 0 && isPopup))
|
||||
if (isHot)
|
||||
{
|
||||
cdraw->nmcd.uItemState |= CDIS_HOT;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue