user32: Further implementation of MNS_NOTIFYBYPOS.
This commit is contained in:
parent
0161606b53
commit
356c47e89e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue