// ShapeItem.h : 図形(矩形枠 / 直線)印刷アイテム // 各印刷領域の区切り線・枠線に使用。 #pragma once #include "PrintItem.h" class CShapeItem : public CPrintItem { DECLARE_SERIAL(CShapeItem) public: CShapeItem(); int m_shape; // 0=矩形枠, 1=直線(左上→右下) int m_lineWidthHu; // 線幅(1/100mm) ItemType Type() const override { return m_shape == 1 ? ItemType::Line : ItemType::Rect; } void Draw(CDC& dc, const CoordMap& map, bool selected) override; CPrintItem* Clone() const override; void Serialize(CArchive& ar) override; };