IsCharacterEnabled Example for C++ 5.0 and later
void CSample_COMDlg::OnButton15()
{
CString csBuffer;
csBuffer.Format (TEXT("Total Select Languages = %d\n"), pRasterDoc->SelectedLanguagesCount);
for (int i=0; i<pRasterDoc->SelectedLanguagesCount; i++)
{
if (pRasterDoc->SelectedLanguages [i] == LANGID_ENGLISH)
AfxMessageBox(TEXT("English is active language"));
}
BOOL nRet = pRasterDoc->IsCharacterEnabled (L"a");
if (nRet == TRUE)
AfxMessageBox(TEXT("The specified character is available in the selected languages."));
else
AfxMessageBox(TEXT("The specified character is not available in the selected languages."));
}