You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
735 B
C++

#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<int, int> m_arrOtherType;
};
};