From 6815f3a6fd5fd26a1c147eb5f3f7f1e4579880e8 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 28 Mar 2002 22:04:45 +0000 Subject: [PATCH] MenuItemFromPoint: rough implementation. --- controls/menu.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/controls/menu.c b/controls/menu.c index 7ad400ccc37..161fdb38542 100644 --- a/controls/menu.c +++ b/controls/menu.c @@ -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; }