// TextItem.h : テキスト印刷アイテム #pragma once #include "PrintItem.h" class CTextItem : public CPrintItem { DECLARE_SERIAL(CTextItem) public: CTextItem(); CString m_text; // 印刷文字列(複数行可) CString m_fontName; // フォント名 double m_pointSize; // ポイントサイズ int m_align; // 0=左, 1=中央, 2=右 BOOL m_bold; ItemType Type() const override { return ItemType::Text; } void Draw(CDC& dc, const CoordMap& map, bool selected) override; CPrintItem* Clone() const override; void Serialize(CArchive& ar) override; };