How to change a font of static text
-
Hello all, I have created static text dynamically on a dialog box. But it is displaying in different font. How to change the font to normal static text. Thanks in advance Regards, Aj
-
Hello all, I have created static text dynamically on a dialog box. But it is displaying in different font. How to change the font to normal static text. Thanks in advance Regards, Aj
You can use GetFont and SetFont for getting and setting fonts. normally the child controls shows the font you have specfied in resource file. i.e. Dialog's font.
SaRath.
_"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
-
Hello all, I have created static text dynamically on a dialog box. But it is displaying in different font. How to change the font to normal static text. Thanks in advance Regards, Aj
You can use like this
m_YourControl.SetFont(GetFont());
or you can useCreateFont
_**
**_
WhiteSky
-
Hello all, I have created static text dynamically on a dialog box. But it is displaying in different font. How to change the font to normal static text. Thanks in advance Regards, Aj
If you are programming in plain win32, you will have to send a WM_SETFONT to the control to change the font. Vipin http://www.explorewindows.com/Blogs
-
Hello all, I have created static text dynamically on a dialog box. But it is displaying in different font. How to change the font to normal static text. Thanks in advance Regards, Aj
I show an example of this in the Extras section of this article.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb