From 11bbfc4a0bf186e6bc6920048dd7cab8dc3c7291 Mon Sep 17 00:00:00 2001 From: David Quintana Date: Mon, 13 Oct 2014 16:09:57 +0000 Subject: [PATCH] [RSHELL] * Actually send an OnSelect message right before executing the menu items. Fixes the problem where going to start->shutdown would keep the start menu open in the background. svn path=/branches/shell-experiments/; revision=64727 --- base/shell/rshell/CMenuBand.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/shell/rshell/CMenuBand.cpp b/base/shell/rshell/CMenuBand.cpp index 1711e91c45f..932f161a4b7 100644 --- a/base/shell/rshell/CMenuBand.cpp +++ b/base/shell/rshell/CMenuBand.cpp @@ -934,6 +934,10 @@ HRESULT CMenuBand::_MenuItemHotTrack(DWORD changeType) switch (changeType) { case MPOS_EXECUTE: + if (m_subMenuParent) + { + m_subMenuParent->OnSelect(changeType); + } m_hotBar->ExecuteItem(m_hotItem); break;