PATCH: mdi menu

Marcus Meissner marcus at jet.franken.de
Sun Aug 8 15:35:38 CDT 2004


Hi,

IDA Pro works much better if you apply this patch.

Otherwise it recurses with
	WM_MDISETMENU(hwnd,hmenu) -> SetWindowPos(,SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE|SWP_FRAMECHANGED) -> WM_MIDSETMENU(hwnd,hmenu)

I have no testcase, but it will stop one of my colleagues bugging me all day 
"Does IDA Pro work now?"

Ciao, Marcus

Changelog:
	If the current menu handle is already set, do not set it again.


Index: windows/mdi.c
===================================================================
RCS file: /home/wine/wine/windows/mdi.c,v
retrieving revision 1.130
diff -u -r1.130 mdi.c
--- windows/mdi.c	30 Jun 2004 18:15:51 -0000	1.130
+++ windows/mdi.c	8 Aug 2004 20:30:57 -0000
@@ -296,6 +296,8 @@
 
     if (!(ci = get_client_info( hwnd ))) return 0;
 
+    if (hmenuFrame == ci->hFrameMenu) return (LRESULT)hmenuFrame;
+
     if( IsZoomed(ci->hwndActiveChild) && hmenuFrame && hmenuFrame!= ci->hFrameMenu )
         MDI_RestoreFrameMenu( hwndFrame, ci->hwndActiveChild );
 
-- 



More information about the wine-patches mailing list