Solved

chage font in Visual C++ dynamically

Posted on 1998-03-11
3
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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