codepageumschaltung funktioniert nicht... bitte um hilfe !
-
hi, ich habe in mir in diesem forum einen beitrag (samt beispiel) gesucht, welches mir die codepage umschalten soll.
fnt=new CFont(); lf = new LOGFONT(); ZeroMemory(lf,sizeof(LOGFONT)); lf->lfHeight=14; lf->lfCharSet=EASTEUROPE_CHARSET;//ARABIC_CHARSET lstrcpy(lf->lfFaceName, _T("Arial")); fnt->CreateFontIndirect(lf); GetDlgItem(IDC_STATIC_1)->SetFont(fnt); SetDlgItemText(IDC_STATIC_1," Úèníc"); // das è sollte ein c mit dacherl werden, tut er aber nicht
allerdings kann ich als charset angeben was ich will, der text wird immer gleich dargestellt.
unter win98 hatte das mal so funktioniert, vielleicht kann mir jemand helfen !
WIN2000/WINXP, VC6.0
-
hi, ich plage mich herum und schaffe es nicht......
was ganz komisch ist: das EDIT-Control stellt den Text RICHTIG dar.
Statics, Buttons und auch der Dialogtitel funzen nicht.
Ich bitte euch um hilfe.[code]
fnt=new CFont();
lf = new LOGFONT();GetDlgItem(IDC_STATIC_1)->GetFont()->GetLogFont(lf);
lf->lfCharSet = EASTEUROPE_CHARSET;
fnt->CreateFontIndirect(lf);SetFont(fnt);
GetDlgItem(IDC_STATIC_1)->SetFont(fnt);
GetDlgItem(IDC_EDIT1)->SetFont(fnt);
GetDlgItem(IDCANCEL)->SetFont(fnt);GetDlgItem(IDC_EDIT1)->SetWindowText("Úèníc");
GetDlgItem(IDC_STATIC_1)->SetWindowText("Úèníc");
GetDlgItem(IDCANCEL)->SetWindowText("Úèníc");
SetWindowText("Úèníc");
[/cpp]
-
upps, codetagerror - sorry !
bitte um hilfe (IS SEHR DRINGEND....)
fnt=new CFont(); lf = new LOGFONT(); GetDlgItem(IDC_STATIC_1)->GetFont()->GetLogFont(lf); lf->lfCharSet = EASTEUROPE_CHARSET; fnt->CreateFontIndirect(lf); SetFont(fnt); GetDlgItem(IDC_STATIC_1)->SetFont(fnt); GetDlgItem(IDC_EDIT1)->SetFont(fnt); GetDlgItem(IDCANCEL)->SetFont(fnt); GetDlgItem(IDC_EDIT1)->SetWindowText("Úèníc"); GetDlgItem(IDC_STATIC_1)->SetWindowText("Úèníc"); GetDlgItem(IDCANCEL)->SetWindowText("Úèníc"); SetWindowText("Úèníc");