CPenFTR Class

class CPenFTR: public CXMLSerializeImp

CPenFTR is the XML formatter for the MFC CPen class. Implementations of XMLSerialize() that attempt to serialize a CPen, should create an instance of the CPenFTR class, initialize it with the LOGPEN object attached to the CPen 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 LOGPEN instead of a CPen, since while storing the CPen contents could contain application specifics that are not meant to be persisted, and while reading there might be insufficient information to create a CPen out of the persisted information.

Class Members

CPenFTR(LOGPEN& lopn, LPCTSTR strElementType = _T("Pen")) : CXMLSerializeImp(strElementType), m_lopn(lopn) { }; (lopn)

Constructor.