Commit 356c47e8 authored by Igor Tarasov's avatar Igor Tarasov Committed by Alexandre Julliard

user32: Further implementation of MNS_NOTIFYBYPOS.

parent 0161606b
...@@ -2472,7 +2472,10 @@ static INT MENU_ExecFocusedItem( MTRACKER* pmt, HMENU hMenu, UINT wFlags ) ...@@ -2472,7 +2472,10 @@ static INT MENU_ExecFocusedItem( MTRACKER* pmt, HMENU hMenu, UINT wFlags )
MAKELPARAM((INT16)pmt->pt.x, (INT16)pmt->pt.y) ); MAKELPARAM((INT16)pmt->pt.x, (INT16)pmt->pt.y) );
else 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, PostMessageW( pmt->hOwnerWnd, WM_MENUCOMMAND, menu->FocusedItem,
(LPARAM)hMenu); (LPARAM)hMenu);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment