Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an MDI application developed in VC7. It has lots of dialogs and child windows.
I need to have a common font throughout the application across dialogs, windows etc.,
Is there any mechanism to achieve this? Or do i have to manually set font for each entity?
Posted

1 solution

"I need to have a common font throughout the application across dialogs, windows etc."

For dialogs, it is simple to edit the .rc file with a text editor and quickly change the font name and size. For other windows, you will have to set manually.

Note: It is possible to set certain system fonts programmatically, but this should not be done without the user's consent.
 
Share this answer
 
Comments
K ARUN KUMAR 14-Mar-11 5:43am    
Hi Hans Dietrich thanks for the reply...
Apart from manually editing the windows' font and editing the .rc file of the application, is there no other means of directly setting the overall application font at one place?
Suppose i need "Calibri" font across all the windows and dialogs in my MDI application.
This will make the application font constant throughout the application..
I mean say if there is a new dialog added to the application in the future, it should also adapt to the default font set to the application.

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