Strip WS_CAPTION and WS_SYSMENU for child dialogs

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

 




ChangeLog: * Strip WS_CAPTION and WS_SYSMENU for child dialogs
Index: windows/dialog.c
===================================================================
RCS file: /home/wine/wine/windows/dialog.c,v
retrieving revision 1.116
diff -u -r1.116 dialog.c
--- windows/dialog.c	9 Jul 2003 19:53:17 -0000	1.116
+++ windows/dialog.c	17 Jul 2003 19:13:49 -0000
@@ -549,6 +549,8 @@
     rect.left = rect.top = 0;
     rect.right = MulDiv(template.cx, dlgInfo->xBaseUnit, 4);
     rect.bottom =  MulDiv(template.cy, dlgInfo->yBaseUnit, 8);
+    if (template.style & WS_CHILD)
+        template.style &= ~(WS_CAPTION|WS_SYSMENU);
     if (template.style & DS_MODALFRAME)
         template.exStyle |= WS_EX_DLGMODALFRAME;
     AdjustWindowRectEx( &rect, template.style, (dlgInfo->hMenu != 0), template.exStyle );

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

  Powered by Linux