#pragma once // CLogfontWrapper class CLogfontWrapper : public CWnd { DECLARE_SERIAL(CLogfontWrapper) public: CLogfontWrapper(); CLogfontWrapper(const CLogfontWrapper& lfwrap); CLogfontWrapper(const LOGFONT& lf); const CLogfontWrapper& operator=(const CLogfontWrapper&); const CLogfontWrapper& operator=(const LOGFONT& lf); void SetLogfont(CString strName, int nSize, BOOL bUnderline = FALSE, BOOL bBold = FALSE); virtual ~CLogfontWrapper(); void Serialize(CArchive& ar);; LOGFONT m_lf; #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: DECLARE_MESSAGE_MAP() private: public: CString GetFaceName(void); void TranslateFontHeight(int nNumerator, int nDenominator); };