_
Um die Schriftfarbe einer Textbox zu ändern musst du das in der WM_CTLCOLOR
reinschreeiben:
if (pWnd->GetDlgCtrlID()== IDC_EDIT_BOX / IDC_STATIC_TEXTFELD)
{
pDC->SetTextColor(RGB(255,0,0)); //Textfarbe
}
Die Schriftart kann man glaub ich nicht ändern !
Jedoch kannst du die Schriftart eines Static-Textes do ändern :
//Schreib das in die OnInitDialog
LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT));
strcpy(lf.lfFaceName, "Arial");
lf.lfWeight = FW_HEAVY;
lf.lfUnderline = TRUE;
lf.lfHeight = 15;
font.CreateFontIndirect(&lf);
GetDlgItem(IDC_STATIC_DEINES_STEURELEMENT)->SetFont(&font);
Vorher musst du nur noch eine CFont font Variable in der Dlg.h schreiben !
Hoffe du verstehst alles !
Gruß
:: NoName ::