- Added support for CF_ENABLETEMPLATEHANDLE.
- Revised the FIXME on unsupported flags to not reported the flags now turned supported.
This commit is contained in:
parent
b09eef23b3
commit
b61fd42e4d
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue