CFont
-
Hallo,
wie funktioniert dieser Code den nicht.
Ich bin am verzweifeln.CFont m_font;
LOGFONT lF;
lF.lfHeight = 18;
lF.lfWidth = 18;
lF.lfWeight = FW_NORMAL;
lF.lfItalic = TRUE;
lF.lfUnderline = TRUE;
lF.lfStrikeOut = TRUE;
lF.lfEscapement = 0;
lF.lfOrientation = 0;m_font.CreateFontIndirect(&lF);
CWnd* pStatic = GetDlgItem(IDC_STATIC1);
pStatic->SetFont( &m_font);
-
Du solltest mal alle Felder ausfüllen!
Hast z.B. keine Schriftartennamen angegeben.