Solved

How to change the font of a CPropertySheet

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries DB2 Query 2 97
MaxSpan challenge 9 109
Good resource for accessibility implementation 1 89
Is there a standard name for this icon in Technical Writing 10 64
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…

820 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