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.
kev/Drawer/Module/GeoSigmaDraw/ItemSelectElement.h

68 lines
1.7 KiB
C

1 month ago
#pragma once
#include "item.h"
namespace NItem
{
class CItemSelectElement : public CItem
{
public:
CItemSelectElement(CSigmaDoc * ppDoc);
virtual ~CItemSelectElement(void);
class SELECT_ITEM
{
public:
POSITION pos;
CPoint2D point;
SELECT_ITEM()
{
pos=NULL;
};
};
CList<SELECT_ITEM,SELECT_ITEM> SelectList;
protected:
CList<SELECT_ITEM,SELECT_ITEM> RedoList;
BOOL m_nCompareIdea; //<2F><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ѡ<EFBFBD>й<EFBFBD><D0B9><EFBFBD>-1=<3D><><EFBFBD>Ƚϣ<C8BD>0=<3D>Ƚ<EFBFBD><C8BD><EFBFBD>β<EFBFBD><CEB2>1=<3D>Ƚ<EFBFBD>ȫ<EFBFBD><C8AB>
int m_SelectType;
UINT m_SelectID;
int num; //ѡ<><D1A1><EFBFBD>ĸ<EFBFBD><C4B8><EFBFBD>
BOOL m_bRedraw;
int m_countSelected;
public:
void OnDraw(CXyDC* pDC) override;
void OnDraw(CXyDC* pXyDC, CDC* pDC) override;
void OnLButtonDown(CDC* pDC, UINT nFlags, CPoint point, int vk) override;
int OnMouseMove(CDC* pDC, UINT nFlags, CPoint point) override;
virtual void DrawSelectItem(POSITION pos);
virtual void DrawSelectItem(SELECT_ITEM& item);
virtual BOOL DoSelectEnd(void);
virtual BOOL SelectItem(POSITION pos,CPoint2D point);
virtual BOOL Select(POSITION pos, CPoint2D point);
virtual BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
virtual void Redo(void);
virtual void Undo(void);
virtual BOOL IsElementType(POSITION pos, int type);
virtual BOOL IsCanSelected(POSITION pos);
virtual BOOL IsSelectItem(POSITION pos);
void RemoveAllSelect();
//void InvalidateOne(POSITION pos);
BOOL IsMoveSelect(void);
BOOL IsCanRedo(void);
BOOL IsCanUndo(void);
POSITION GetSelectItem(int nIndex);
void RemoveAt(int nIndex);
int GetSelectCount(void);
void SetNumber(int nNum);
void SetSelectInfo(int nType,UINT nInfoID);
void SetCompareIdea(int nIdea);
void InvalidateSelect(void);
void EnableDraw(BOOL bEnable);
int GetCountSelected();
};
};