user32: Further implementation of MNS_NOTIFYBYPOS.

This commit is contained in:
Igor Tarasov 2008-05-23 18:35:33 +09:00 committed by Alexandre Julliard
parent 0161606b53
commit 356c47e89e
1 changed files with 4 additions and 1 deletions

View File

@ -2472,7 +2472,10 @@ static INT MENU_ExecFocusedItem( MTRACKER* pmt, HMENU hMenu, UINT wFlags )
MAKELPARAM((INT16)pmt->pt.x, (INT16)pmt->pt.y) );
else
{
if (menu->dwStyle & MNS_NOTIFYBYPOS)
POPUPMENU *topmenu = MENU_GetMenu( pmt->hTopMenu );
DWORD dwStyle = menu->dwStyle | (topmenu ? topmenu->dwStyle : 0);
if (dwStyle & MNS_NOTIFYBYPOS)
PostMessageW( pmt->hOwnerWnd, WM_MENUCOMMAND, menu->FocusedItem,
(LPARAM)hMenu);
else