
changing font on a CEdit control
Hi all,
I'd like to change the font on a CEdit control.
For now, I use this code :
-----------------------
LOGFONT DescNewsFont; //structure with font attributes
CFont NewsFont; //Font Object
CFont* pfont = m_TextNews.GetFont(); //Get actual Font of the CEdit control
pfont->GetLogFont( &DescNewsFont); //fill in LOGFONT structure
DescNewsFont.lfItalic = TRUE; //modify the LOGFONT structure
NewsFont.CreateFontIndirect( &DescNewsFont ); //Create the new Font
m_TextNews.SetFont( &NewsFont, TRUE); //Set it to the CEdit control
------------------
I don't have the expected result (characters become bold but not italic).
Any sugestion?
thank you...