Article ID: 142170
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Foundation Class Library 4.2, when used with:
- Microsoft Visual C++ 4.0 Standard Edition
- Microsoft Visual C++ 4.1 Subscription
- Microsoft Visual C++ 4.2 Enterprise Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 4.2 Professional Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
- Microsoft Visual C++ .NET 2002 Standard Edition
This article was previously published under Q142170
Note Microsoft Visual C++ NET (2002) supported both the managed code
model that is provided by the .NET Framework and the unmanaged native Windows
code model. The information in this article applies to unmanaged Visual C++
code only.
SUMMARY
PRPFONT shows how to set the desired font for your
CPropertyPages in the Resource Editor, and at run-time, set the sheet's font to
be the same and size everything correctly. All of this is done in a class
called CMySheet. A function called ChangeDialogFont() does the work of setting
the font and resizing windows. CPropertySheet::BuildPropPageArray() was
overridden so that the fonts in the pages are not reset.
Additional query words: 4.10 4.20 prpfont propfont runtime run-time
Keywords: kbhowto kbfile kbfont kbgdi kbprogramming kbpropsheet kbsample kbuidesign KB142170