Mon programme Windows C++ utilise htmlhelp. La structure HH_POPUP inclut le champ pszFont au format: "Facename [, point size [, CHARSET [, couleur [, PLAIN BOLD ITALIC UNDERLINE]]]]", mais je ne trouve aucune information sur la façon de définir le jeu de caractères. Mon aide contextuelle russe est totalement illisible.Comment définir charset pour HTMLhelp?
HH_POPUP popupAttr;
memset(&popupAttr, 0, sizeof(popupAttr));
popupAttr.cbStruct = sizeof(popupAttr);
popupAttr.clrBackground = COLORREF(-1);
popupAttr.clrForeground = COLORREF(-1);
popupAttr.rcMargins.left = -1;
popupAttr.rcMargins.bottom = -1;
popupAttr.rcMargins.right = -1;
popupAttr.idString = UINT(helpInfo->dwContextId);
popupAttr.pt = helpInfo->MousePos;
popupAttr.pszFont = _T("Arial,18,HOW_TO_DEFINE_THIS_CHARSET"); // please!!!
CWnd::GetDesktopWindow()->HtmlHelp(reinterpret_cast<DWORD>(&popupAttr), HH_DISPLAY_TEXT_POPUP);
Est-ce compilé avec UNICODE en vigueur? Quelle est la langue de votre système? –
Le problème a résolu en convertissant le fichier txt avec des étiquettes de popup de UNICODE à ANSI. Merci à tous pour votre aide. –