GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Apr-2005, 07:03
banur22 banur22 is offline
New Member
 
Join Date: Apr 2005
Posts: 16
banur22 is on a distinguished road

how to increase the font size at runtime


hello friends
please let me know how to increase the font size at runtime for a text box in vc++...........................please help me
  #2  
Old 21-Apr-2005, 07:37
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 1,032
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Quote:
Originally Posted by banur22
hello friends
please let me know how to increase the font size at runtime for a text box in vc++...........................please help me

You can change the font of an edit control at runtime by making use of the SetFont member function.
Example:

CPP / C++ / C Code:
	CFont m_Font;
	m_Font.CreateFont(18, 7, 5, 0, 0, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, 
		CLIP_DEFAULT_PRECIS, PROOF_QUALITY,	DEFAULT_PITCH + FF_DECORATIVE, "Arial");	
	m_EditControl.SetFont(&m_Font);

Best regards,
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GradeBook Program x3ro C++ Forum 19 03-Apr-2005 20:28
template comiling problems - need expert debugger! crq C++ Forum 1 01-Feb-2005 22:26
Table Size rams MySQL / PHP Forum 3 22-Jan-2005 04:52
Having a problem Chuckles Computer Hardware Forum 19 13-Sep-2004 13:17
Re: Programming Techniques WaltP C Programming Language 0 10-Mar-2004 00:56

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 09:20.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.