mlang: Add implementation of fnIMLangFontLink_GetCharCodePages.

This commit is contained in:
Vitaly Perov 2008-11-27 21:28:49 +03:00 committed by Alexandre Julliard
parent c685548056
commit 4398c51f1e

View File

@ -1853,8 +1853,27 @@ static HRESULT WINAPI fnIMLangFontLink_GetCharCodePages(
WCHAR chSrc,
DWORD* pdwCodePages)
{
FIXME("\n");
return E_NOTIMPL;
int i;
CHAR buf;
BOOL used_dc;
DWORD codePages;
*pdwCodePages = 0;
for (i = 0; i < sizeof(mlang_data)/sizeof(mlang_data[0]); i++)
{
WideCharToMultiByte(mlang_data[i].family_codepage, WC_NO_BEST_FIT_CHARS,
&chSrc, 1, &buf, 1, NULL, &used_dc);
/* If default char is not used, current codepage include the given symbol */
if (!used_dc)
{
IMLangFontLink_CodePageToCodePages(iface,
mlang_data[i].family_codepage, &codePages);
*pdwCodePages |= codePages;
}
}
return S_OK;
}
static HRESULT WINAPI fnIMLangFontLink_GetStrCodePages(