Hi,
ich hab zum ausprobieren einen Dialog mit einem Textfeld erstellt. In dem Textfeld will ich die Schriftart festlegen und dann etwas hineinschreiben.
Ich hab das so probiert:
HWND hText = GetDlgItem(hWnd,IDC_TEXT);
HFONT font = CreateFont(0, 0, 0, 0,
FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS,
"Arial");
SendMessage(hText, WM_SETFONT, (WPARAM)font, TRUE);
SetWindowText(hText,"Hallo");
[/PHP]
Leider bleibt die Schrift immer die Selbe, egal ob ich Arial,Comic,Wingding oder sonst was wähle.
Weiß einer warum?
Gruß
Guybrush