Solved

How to change the font of a CPropertySheet

Posted on 1998-03-26
3
1,047 Views
Last Modified: 2013-12-03
  In my application, I defined the font in all dialogs as SYSTEM font. But I found that  class PropertySheet will always change the font to  a predefined one, no matter which font I defined in class PropertyPage(  especially in  Chinese Language Windows environment). So it will be shown
so  different   to other dialogs in my app. Can I work around it?


0
Comment
Question by:Bin032698
3 Comments
 
LVL 7

Expert Comment

by:galkin
ID: 1317255
Try to set font for each property page in property sheet with SetFont.
0
 

Author Comment

by:Bin032698
ID: 1317256
   Sorry, it's not so simple, I've test this many times,
not only you change the font of property page, you should
also resize all includings. In microsoft
        KB Article ID: Q142170
    There's the question, but I get the answer, can someone
help me?
0
 
LVL 23

Accepted Solution

by:
naveenkohli earned 100 total points
ID: 1317257
Hi Bin,
Don't worry, this is not a big problem. Since prop sheets are derived from CWnd class. They get default props. from parent Cwnd. Therefore while crerating ur CPropSheet, if you specify CWnd *pParent = NULL, its gonna get the defualt props. of CWnd at that time. Therefore while creating CPropSheet, don't specify it to NULL. Set the font there. And then create ur cPropSheet. Hopefully this shuld solve ur problem.

Have Fun! Buddy!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 2010 Export to pdf 2 330
substring method in java 1 116
zeroMAx challenge 20 99
canBalance challenge 34 80
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
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…

813 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

11 Experts available now in Live!

Get 1:1 Help Now