Prpfont.exe sample demonstrates how to set the desired font for your CPropertyPages in Visual C++ (142170)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ .NET (2002)
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.
Modification Type: | Major | Last Reviewed: | 6/1/2005 |
---|
Keywords: | kbhowto kbfile kbFont kbGDI kbProgramming kbPropSheet kbSample KbUIDesign KB142170 kbAudDeveloper |
---|
|