Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to change font in vc++ 6. No more detail from OP.
Posted
Updated 20-Sep-12 21:30pm
v2
Comments
Richard MacCutchan 21-Sep-12 3:31am    
Do you mean the font used in the IDE or in your generated application?

 
Share this answer
 
Comments
pasztorpisti 21-Sep-12 7:07am    
+5 with the other answer this covers all possibilities
Mesut Akcan 19-Mar-20 8:27am    
404 Not found.
I assume you want to programmatically change the font of one or more windows of your application.
You may use the WM_SETFONT[^] message (or the CWnd::SetFont[^] method, if you are using MFC).
 
Share this answer
 
Comments
pasztorpisti 21-Sep-12 7:07am    
+5 the op might have asked for this, who knows...
CPallini 21-Sep-12 8:00am    
He/She (possibly) knows. :-)
Thank you.
I had a look at an installation on a WinXP machine and got it working by adding the following keys to the registry:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format]

[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Output Window]
"FontFace"="Consolas"
"FontSize"=dword:0000000c

[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Source Window]
"FontFace"="Consolas"
"FontSize"=dword:0000000c

The above lines set the Source and Output window's font to Consolas with a size of 12 points. It's an export by regedit so you can put it into a .reg file and import by opening that file in Explorer.

This solution from stackoverflow
 
Share this answer
 
Comments
Nelek 19-Mar-20 8:39am    
This answer was got in the moderation filter. I have let it through because the question was already brought up to the list due to other spam and it is still marked as "unsolved". And the solution might be late, but still relevant

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900