Solved

chage font in Visual C++ dynamically

Posted on 1998-03-11
3
176 Views
Last Modified: 2013-12-03
When my application is opened on another P.C., Parts of the static text boxes are cut short. this is
because the resolution and font size settings of the other P.C. is different. How do I adjust the font
size in my application dynamically.
0
Comment
Question by:martythegreat
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1114350
Send the WM_FONT to the control whose font you would like to change.  Specify a handle to the font in the word parameter and a boolean in the long parameter to indicate if the window should be redrawn.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1114351
FYI this topic area is on creating/manipulating fonts non-programatically.  You would have gotten a much faster response if you askes the question in the windows programming topic area.  (By faster I mean you would have an answer in a few minutes, not days!)
0
 

Expert Comment

by:sajankovalam
ID: 7535698
ok i will try
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now