- Added support for CF_ENABLETEMPLATEHANDLE.

- Revised the FIXME on unsupported flags to not reported the flags now
  turned supported.
This commit is contained in:
Shachar Shemesh 2002-11-13 04:08:57 +00:00 committed by Alexandre Julliard
parent b09eef23b3
commit b61fd42e4d
1 changed files with 26 additions and 19 deletions

View File

@ -265,6 +265,11 @@ BOOL WINAPI ChooseFontA(LPCHOOSEFONTA lpChFont)
HINSTANCE hDlginst;
HGLOBAL hDlgTmpl;
if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 )
{
template=(LPCVOID)lpChFont->hInstance;
} else
{
if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 )
{
hDlginst=lpChFont->hInstance;
@ -289,11 +294,13 @@ BOOL WINAPI ChooseFontA(LPCHOOSEFONTA lpChFont)
COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE);
return FALSE;
}
}
if (TRACE_ON(commdlg))
_dump_cf_flags(lpChFont->Flags);
if (lpChFont->Flags & (CF_SELECTSCRIPT | CF_NOVERTFONTS | CF_ENABLETEMPLATE |
CF_ENABLETEMPLATEHANDLE)) FIXME(": unimplemented flag (ignored)\n");
if (lpChFont->Flags & (CF_SELECTSCRIPT | CF_NOVERTFONTS ))
FIXME(": unimplemented flag (ignored)\n");
return DialogBoxIndirectParamA(COMMDLG_hInstance32, template,
lpChFont->hwndOwner, FormatCharDlgProcA, (LPARAM)lpChFont );
}