[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • Last Modified:

Changing default font on CEditView

How can I change the default font on a CEditView control?  I want to change it to a monospace font.

Thanks
0
jordan_p
Asked:
jordan_p
  • 2
1 Solution
 
chensuCommented:
Call CWnd::SetFont on the control. Note the font should exist until the control is destroyed.
0
 
jordan_pAuthor Commented:
I ended up using a CRichEditView class instead.  It was easier to impliment the fonts in it than to use the SetFont for the control.
0
 
chensuCommented:
But that does not necessarily mean my answer is bad.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now