Commit 6815f3a6 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

MenuItemFromPoint: rough implementation.

parent b3d60997
......@@ -4818,9 +4818,14 @@ DWORD WINAPI GetMenuContextHelpId( HMENU hMenu )
*/
UINT WINAPI MenuItemFromPoint(HWND hWnd, HMENU hMenu, POINT ptScreen)
{
FIXME("(0x%04x,0x%04x,(%ld,%ld)):stub\n",
hWnd, hMenu, ptScreen.x, ptScreen.y);
return 0;
POPUPMENU *menu = MENU_GetMenu(hMenu);
UINT pos;
MENUITEM *item;
/*FIXME: Do we have to handle hWnd here? */
item = MENU_FindItemByCoords(menu, ptScreen, &pos);
return pos;
}
......
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