#pragma once #include "itemselectelement.h" namespace NItem { class CItemSelectCurve :public CItemSelectElement { public: CItemSelectCurve(CSigmaDoc * ppDoc); virtual ~CItemSelectCurve(void); virtual void DrawSelectItem(SELECT_ITEM& item); virtual void DrawSelectItem(POSITION pos); virtual BOOL IsSelectItem(POSITION pos); void Draw(CXyDC* pDC, CCurveEx* pCurve, COLORREF color); CCurveEx* GetRangeCurve(POSITION pos, BOOL& bDeleteCurve); void EnableDrawSelectPoint(BOOL bEnable); BOOL m_bDrawSelectPoint; //画选择点 //是否可以选择其它指定的类型 void EnableSelectOtherType(BOOL bEnable); void AddOtherType(int type); BOOL IsOtherType(POSITION pos); BOOL m_bEnableOtherType; CArray m_arrOtherType; }; };