#pragma once // 列加亮 class CVerticalSectionEdJig : public AcEdJig { public: CVerticalSectionEdJig(int iMode); virtual ~CVerticalSectionEdJig(); protected: int GetRetCode(int nRetCode, int *kewyIdx = NULL) const; void UpdateRegion(XPoint ptTopLeft, double nWidth, double nHeight, double nAng); void UpdateRegion2(XPoint ptTopLeft, double nWidth, double nHeight, double nAng); protected: //输入 XString m_sPrompt; //提示信息 XString m_sKeyword; XPoint m_ptInput; // 中间结果 AcDbSolid m_entDraw; // 结果和输入 AcDbObjectId m_idSheet; public: XPoint m_ptResult; int m_iMode; int DoIt(int *pKeyIndex = NULL); virtual DragStatus sampler(); virtual Adesk::Boolean update(); virtual AcDbEntity* entity() const; public: void SetPrompt(const TCHAR *s) { m_sPrompt = s; } void SetKeyword(const TCHAR *k) { m_sKeyword = k; } void SetPoint1(XPoint pt) { m_ptInput = pt; } void SetSheetId(AcDbObjectId id) { m_idSheet = id; } };