Computing.Net > Forums > Programming > C++, changing font

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C++, changing font

Reply to Message Icon

Name: jeff100
Date: July 24, 2002 at 14:39:57 Pacific
Comment:

I am writing a Win32 program in visualC++ 6,
I have a dialog with buttons on but all text displayed on the dialog appears in bold. How do I change the font for the dialog so that is displayed normally




Sponsored Link
Ads by Google

Response Number 1
Name: Jeff J
Date: July 24, 2002 at 15:52:32 Pacific
Reply:

Sounds like you are defaulting to the old Win3x font, System, which is bold by its nature. It was the default several years ago, and sometimes windows and controls still come out that way, unless you explicitly change the font.

In the resource editor, edit your .rc file for the dialog, so that the font is a TrueType font, like MS Sans Serif or Tahoma. That will solve your problem. You can also edit the .rc file in a text editor, and change the FONT entry to whatever name you desire.

Cheers


0
Reply to Message Icon

Related Posts

See More


VB6 ADO Win98 Which language



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++, changing font

How to change font and background c www.computing.net/answers/programming/how-to-change-font-and-background-c/10470.html

C++ 6.0 font www.computing.net/answers/programming/c-60-font-/5779.html

Changing Font Of Menu items www.computing.net/answers/programming/changing-font-of-menu-items/2230.html