CFontFTR Class

class CFontFTR: public CXMLSerializeImp

CFontFTR is the XML formatter for the MFC CFont class. Implementations of XMLSerialize() that attempt to serialize a CFont, should create an instance of the CFontFTR class, initialize it with the LOGFONT object attached to the CFont and then pass the formatter to the SECXMLArchive::Read/Write method.

See Also  SECXMLArchive and  CXMLSerializeImp

Defined in: xmlgdiser.h

Comments

The formatter references a LOGFONT instead of a CFont, since while storing the CFont contents could contain application specifics that are not meant to be persisted, and while reading there might be insufficient information to create a CFont out of the persisted information.

Class Members

CFontFTR(LOGFONT& lf, LPCTSTR strElementType = _T("Font")) : CXMLSerializeImp(strElementType), m_lf(lf) { }; (lf)

Constructor.