Window menu
Duane Clark
dclark at akamail.com
Mon Jan 6 19:51:41 CST 2003
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.
-------------- next part --------------
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
More information about the wine-patches
mailing list