#pragma once #include "commandbase.h" //添加节点 class CCommandAddNode :public CCommandBase { public: CCommandAddNode(void); ~CCommandAddNode(void); virtual CString GetStr(); virtual void ExcuteExt(); virtual void UndoExt(); void SetPar(int idx,Dbxy pt); private: int m_idx;//节点的索引值 Dbxy m_pt;//节点的坐标 };