Create dialog window using CreateWindowEx16/W depending on template

type, not dialog procedure type.
This commit is contained in:
Ulrich Weigand 1999-07-10 13:08:50 +00:00 committed by Alexandre Julliard
parent 7797f256fb
commit f03c93669b

View File

@ -688,8 +688,7 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
if ((INT16)template.x == CW_USEDEFAULT16) if ((INT16)template.x == CW_USEDEFAULT16)
{ {
rect.left = rect.top = (procType == WIN_PROC_16) ? CW_USEDEFAULT16 rect.left = rect.top = win32Template? CW_USEDEFAULT : CW_USEDEFAULT16;
: CW_USEDEFAULT;
} }
else 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, hwnd = CreateWindowEx16(template.exStyle, template.className,
template.caption, template.style & ~WS_VISIBLE, template.caption, template.style & ~WS_VISIBLE,
rect.left, rect.top, rect.right, rect.bottom, rect.left, rect.top, rect.right, rect.bottom,