Window menu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've been using this patch for about a year and a half now, so I might as well just submit it.

Changelog:
A window with a WS_EX_APPWINDOW extended style can also
get a menu.

Index: windows/win.c
===================================================================
RCS file: /home/wine/wine/windows/win.c,v
retrieving revision 1.212
diff -u -r1.212 win.c
--- windows/win.c	3 Dec 2002 23:34:52 -0000	1.212
+++ windows/win.c	29 Dec 2002 23:44:56 -0000
@@ -1142,7 +1142,8 @@
 
     /* Set the window menu */
 
-    if ((wndPtr->dwStyle & (WS_CAPTION | WS_CHILD)) == WS_CAPTION )
+    if ((wndPtr->dwStyle & WS_CAPTION || wndPtr->dwExStyle & WS_EX_APPWINDOW)
+        && !( wndPtr->dwStyle & WS_CHILD) )
     {
         if (cs->hMenu) SetMenu(hwnd, cs->hMenu);
         else

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux