(no subject)

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Mar 27 15:04:13 CST 2002


Hallo

swcadiii uses the function quite offten( but it seems it doesn't use the
return value) 

Changelog:
	controls/menu: MenuItemFromPoint
	Rough implementation

Bye

NB: This patched is released under the X11 license. 

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--

Index: wine/controls/menu.c
===================================================================
RCS file: /home/wine/wine/controls/menu.c,v
retrieving revision 1.137
diff -u -r1.137 menu.c
--- wine/controls/menu.c	9 Mar 2002 23:50:36 -0000	1.137
+++ wine/controls/menu.c	27 Mar 2002 20:58:52 -0000
@@ -4818,9 +4818,14 @@
  */
 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;
 }
 
 



More information about the wine-patches mailing list