I want to change the Font that my Ceditview is using to a font that has fixed wides (uhhh the length from left to right, sorry bad english) like Courier new.
When I do this the following way, it doesn't work.
Has anybody got an idee?
--------------------
CFont m_font;
LOGFONT LF;
memset(&lf, 0, sizeof(LOGFONT));
LF.lfHeight = 18;
strcpy(LF.lffacename, "Courier New"
m_font.CreateFontIndirect(&lf);
PEditCtrl.SetFont(&m_font);
----------------------
Martini
When I do this the following way, it doesn't work.
Has anybody got an idee?
--------------------
CFont m_font;
LOGFONT LF;
memset(&lf, 0, sizeof(LOGFONT));
LF.lfHeight = 18;
strcpy(LF.lffacename, "Courier New"
m_font.CreateFontIndirect(&lf);
PEditCtrl.SetFont(&m_font);
----------------------
Martini