mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[RSHELL]
* Fix executing items after the menu has closed. svn path=/branches/shell-experiments/; revision=65074
This commit is contained in:
parent
180b6fb083
commit
30a510975b
3 changed files with 19 additions and 9 deletions
|
@ -948,14 +948,18 @@ HRESULT CMenuBand::_MenuItemHotTrack(DWORD changeType)
|
|||
switch (changeType)
|
||||
{
|
||||
case MPOS_EXECUTE:
|
||||
{
|
||||
CMenuToolbarBase * tb = m_hotBar;
|
||||
int item = m_hotItem;
|
||||
tb->PrepareExecuteItem(item);
|
||||
if (m_subMenuParent)
|
||||
{
|
||||
m_subMenuParent->OnSelect(changeType);
|
||||
}
|
||||
TRACE("Menu closed, executing item...\n");
|
||||
m_hotBar->ExecuteItem(m_hotItem);
|
||||
tb->ExecuteItem();
|
||||
break;
|
||||
|
||||
}
|
||||
case MPOS_SELECTLEFT:
|
||||
if (m_parentBand && m_parentBand->_IsPopup()==S_FALSE)
|
||||
return m_parentBand->_MenuItemHotTrack(VK_LEFT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue