Microsoft KB Archive/199796

= Mfcfont.exe and Mfcfontvcnet.exe samples demonstrate how to persist the stock font property of a Microsoft Foundation Classes (MFC) ActiveX control in Visual C++ =

Article ID: 199796

Article Last Modified on 11/21/2006

-

APPLIES TO

 Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 6.0 Enterprise Edition

 Microsoft Visual C++ 6.0 Professional Edition

 Microsoft Visual C++ 6.0 Standard Edition

 Microsoft Visual C++ .NET 2002 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q199796

<div class="summary_section">

SUMMARY
Mfcfont.exe and Mfcfontvcnet.exe are samples that demonstrate how to persist the stock font property of a Microsoft Foundation Classes (MFC) ActiveX control.

<div class="moreinformation_section">

MORE INFORMATION
The following files are available for download from the Microsoft Download Center:

Visual C++ 6.0
Download Mfcfont.exe now

Visual C++ .NET
Download Mfcfontvcnet.exe now

Release Date: June 24, 2002

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

By default, the stock font property for an MFC ActiveX control is persisted as a binary COM object (IFontDisp). Many Web authoring tools expect to deal with properties as text name/value pairs using the IPersistPropertyBag interface.

These samples demonstrate how to persist the stock font as a set of text properties to enable the control to be used by Web authoring tools such as FrontPage and the ActiveX Control Pad.

A sample HTML file is provided that demonstrates how to access the font properties from a Web page.

<div class="references_section">