Solved

How to change the font of a CPropertySheet

Posted on 1998-03-26
3
1,030 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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…

744 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

12 Experts available now in Live!

Get 1:1 Help Now