Commit f03c9366 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Create dialog window using CreateWindowEx16/W depending on template

type, not dialog procedure type.
parent 7797f256
......@@ -688,8 +688,7 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
if ((INT16)template.x == CW_USEDEFAULT16)
{
rect.left = rect.top = (procType == WIN_PROC_16) ? CW_USEDEFAULT16
: CW_USEDEFAULT;
rect.left = rect.top = win32Template? CW_USEDEFAULT : CW_USEDEFAULT16;
}
else
{
......@@ -721,7 +720,7 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
}
}
if (procType == WIN_PROC_16)
if (!win32Template)
hwnd = CreateWindowEx16(template.exStyle, template.className,
template.caption, template.style & ~WS_VISIBLE,
rect.left, rect.top, rect.right, rect.bottom,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment