-
CEdit Fonts??
I was wondering if anyone can tell me how to manipulate the font in a static text box. I created a control variable called m_cStatic,
Ityped in m_cStatic.SetFont(), the problem is the parameters that
are needed are CFont* pFont , and a bool) I have looked in all the documentation i have and all it says id that pFont is a pointer to the new font.
I tried typing in font names with and with out quotes it is not working. Has anybody used this or can anybody tell me how to change the font in a static text box?
JG
-
One solution is to create a new font and pass SetFont() its reference. One solution is to create a font via LOGFONT.
Kuphryn
-
Look into CreateFontIndirect and study the LOGFONT structure as Kuphryn suggested. CreateFont is easy to use, but allows less control over the font.