mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:52:56 +00:00
[RSHELL]
* Notify the focus manager that we are about to open a context menu, so that it doesn't mess with the menu popup. svn path=/branches/shell-experiments/; revision=63634
This commit is contained in:
parent
8b3b02a2ca
commit
bcf5de9efc
1 changed files with 4 additions and 0 deletions
|
@ -762,9 +762,13 @@ HRESULT CMenuBand::_TrackContextMenu(IContextMenu * contextMenu, INT x, INT y)
|
||||||
|
|
||||||
HWND hwnd = m_menuOwner ? m_menuOwner : m_topLevelWindow;
|
HWND hwnd = m_menuOwner ? m_menuOwner : m_topLevelWindow;
|
||||||
|
|
||||||
|
m_focusManager->PushTrackedPopup(popup);
|
||||||
|
|
||||||
TRACE("Before Tracking\n");
|
TRACE("Before Tracking\n");
|
||||||
uCommand = ::TrackPopupMenuEx(popup, TPM_RETURNCMD, x, y, hwnd, NULL);
|
uCommand = ::TrackPopupMenuEx(popup, TPM_RETURNCMD, x, y, hwnd, NULL);
|
||||||
|
|
||||||
|
m_focusManager->PopTrackedPopup(popup);
|
||||||
|
|
||||||
if (uCommand != 0)
|
if (uCommand != 0)
|
||||||
{
|
{
|
||||||
TRACE("Before InvokeCommand\n");
|
TRACE("Before InvokeCommand\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue