Mfcfont.exe Persists MFC ActiveX Control Stock Font Property

ID: Q199796


The information in this article applies to:
  • The Microsoft Foundation Classes (MFC), included with:
    • Microsoft Visual C++, 32-bit Editions, version 6.0


SUMMARY

Mfcfont.exe is a sample that demonstrates how to persist the stock font property of an MFC ActiveX control.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:


Mfcfont.exe

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address

http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

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.

This sample demonstrates 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 accessing the font properties from a Web page.

This sample was developed using Microsoft Visual C++ 6.0.


REFERENCES

For more information about the Microsoft Foundation Classes and implementing ActiveX controls, please consult the Microsoft Visual C++ online documentation.

For more information about using ActiveX controls on web pages, please refer to the documentation in the MSDN Online Web Workshop(c) Microsoft Corporation Mark Davis, All Rights Reserved. Contributions by 1999, Microsoft Corporation.

Additional query words: FrontPage ActiveX Control Pad

Keywords : kbfile kbsample kbActiveX kbCtrlCreate kbMFC kbVC400 kbVC500 kbVC600 kbVisID
Version : winnt:6.0
Platform : winnt
Issue type :


Last Reviewed: December 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.