* Fix the hot tracking on the filebrowser menubar. Still does not handle switching menus while hovering, though.
CORE-7586

svn path=/branches/shell-experiments/; revision=62514
This commit is contained in:
David Quintana 2014-03-16 09:28:51 +00:00
parent ea3e04f67f
commit aa699bf2a9
4 changed files with 27 additions and 7 deletions

View file

@ -472,7 +472,10 @@ HRESULT CMenuToolbarBase::OnHotItemChanged(CMenuToolbarBase * toolbar, INT item)
if (m_hotBar == this && !(m_toolbarFlags & SMINIT_VERTICAL))
{
wasChecked = SendMessage(m_hwndToolbar, TB_ISBUTTONCHECKED, m_hotItem, 0);
SendMessage(m_hwndToolbar, TB_CHECKBUTTON, m_hotItem, FALSE);
if (wasChecked)
{
SendMessage(m_hwndToolbar, TB_CHECKBUTTON, m_hotItem, FALSE);
}
}
m_hotBar = toolbar;
m_hotItem = item;
@ -486,6 +489,10 @@ HRESULT CMenuToolbarBase::OnHotItemChanged(CMenuToolbarBase * toolbar, INT item)
HRESULT CMenuToolbarBase::OnPopupItemChanged(CMenuToolbarBase * toolbar, INT item)
{
if (toolbar == NULL && m_popupBar == this)
{
SendMessage(m_hwndToolbar, TB_CHECKBUTTON, item, FALSE);
}
m_popupBar = toolbar;
m_popupItem = item;
InvalidateDraw();