Solved

How to change the font of a CPropertySheet

Posted on 1998-03-26
3
1,073 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
viewing source code from eclipse 13 111
format the code in java 6 117
only14 challenge 19 89
make top menus bigger font 3 107
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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…
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…
Suggested Courses

752 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