mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 15:41:23 +00:00
[RSHELL]
* 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:
parent
ea3e04f67f
commit
aa699bf2a9
4 changed files with 27 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue