mirror of
https://github.com/reactos/reactos.git
synced 2025-01-08 07:11:16 +00:00
- Fix wine Win test_dialog_styles tests and todos.
svn path=/trunk/; revision=56571
This commit is contained in:
parent
ad8ba92407
commit
7a4d47a61f
1 changed files with 4 additions and 2 deletions
|
@ -885,11 +885,13 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue