Increasing font size of text in static text box
-
Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce
-
Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce
-
Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce
Hi, please have a look to Hans Dietrich's XColorStatic[^] class. Regards, Mihai Moga
-
Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce
I assume that you are mentioning about changing the font size of the STATIC control. You can simply use SetFont() function on the Static controls.
CFont font; font.CreateFont( 50, 0, 0, 0, FW\_BOLD, 0, 0, 0, 0, 0, 0, 0, 0, \_T("Times New Roman") ); CWnd\* pWnd = GetDlgItem( IDC\_STATIC1 ); if( pWnd ) { pWnd->SetFont( &font ); font.Detach(); }
Do more work Make more mistakes Learn more things
modified on Saturday, June 28, 2008 12:15 PM
-
Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce