Do not abort dialog creation if DS_NOFAILCREATE allows to continue.

This commit is contained in:
Dmitry Timoshkov 2003-05-11 02:42:28 +00:00 committed by Alexandre Julliard
parent 6d9e148a23
commit 25481334f6
1 changed files with 5 additions and 1 deletions

View File

@ -176,7 +176,11 @@ static BOOL DIALOG_CreateControls16( HWND hwnd, LPCSTR template,
instance, (LPVOID)segptr ));
UnMapLS( segptr );
if (!hwndCtrl) return FALSE;
if (!hwndCtrl)
{
if (dlgTemplate->style & DS_NOFAILCREATE) continue;
return FALSE;
}
/* Send initialisation messages to the control */
if (dlgInfo->hUserFont) SendMessageA( hwndCtrl, WM_SETFONT,