MenuItemFromPoint: rough implementation.

This commit is contained in:
Uwe Bonnes 2002-03-28 22:04:45 +00:00 committed by Alexandre Julliard
parent b3d60997b2
commit 6815f3a6fd
1 changed files with 8 additions and 3 deletions

View File

@ -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;
}