Author: jimtabor
Date: Sun May 13 07:15:53 2012
New Revision: 56571
URL:
http://svn.reactos.org/svn/reactos?rev=56571&view=rev
Log:
- Fix wine Win test_dialog_styles tests and todos.
Modified:
trunk/reactos/win32ss/user/user32/windows/dialog.c
Modified: trunk/reactos/win32ss/user/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] Sun May 13 07:15:53
2012
@@ -885,11 +885,13 @@
rect.left = rect.top = 0;
rect.right = MulDiv(template.cx, xBaseUnit, 4);
rect.bottom = MulDiv(template.cy, yBaseUnit, 8);
- if (template.style & WS_CHILD)
+
+ if (template.style & DS_CONTROL)
template.style &= ~(WS_CAPTION|WS_SYSMENU);
+ template.style |= DS_3DLOOK;
if (template.style & DS_MODALFRAME)
template.exStyle |= WS_EX_DLGMODALFRAME;
- if (template.style & DS_CONTROL)
+ if ((template.style & DS_CONTROL) || !(template.style & WS_CHILD))
template.exStyle |= WS_EX_CONTROLPARENT;
AdjustWindowRectEx( &rect, template.style, (hMenu != 0), template.exStyle );
pos.x = rect.left;