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
1 changed files with 2 additions and 3 deletions

View File

@ -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,