Click to See Complete Forum and Search --> : changing font in a edit control


veesub
April 30th, 1999, 04:06 AM
Hi everybody,
How can i change the font of a edit control?

Jason Teagle
April 30th, 1999, 07:05 AM
Call m_txtMyTextBox.SetFont() with a pointer to the new font (which must stay in existence for as long as the text box does). This is a CWnd method, so as controls such as text boxes and buttons are derived from CWnd, it works.