mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -762,9 +762,13 @@ HRESULT CMenuBand::_TrackContextMenu(IContextMenu * contextMenu, INT x, INT y)
|
||||
|
||||
HWND hwnd = m_menuOwner ? m_menuOwner : m_topLevelWindow;
|
||||
|
||||
m_focusManager->PushTrackedPopup(popup);
|
||||
|
||||
TRACE("Before Tracking\n");
|
||||
uCommand = ::TrackPopupMenuEx(popup, TPM_RETURNCMD, x, y, hwnd, NULL);
|
||||
|
||||
m_focusManager->PopTrackedPopup(popup);
|
||||
|
||||
if (uCommand != 0)
|
||||
{
|
||||
TRACE("Before InvokeCommand\n");
|
||||
|
||||
Reference in New Issue
Block a user