#pragma once #include "commandbase.h" class CCommandMoveNode :public CCommandBase { public: CCommandMoveNode(void); ~CCommandMoveNode(void); virtual CString GetStr(); virtual void ExcuteExt(); virtual void UndoExt(); void SetPar(int idx,Dbxy OldPt,Dbxy NewPt); private: void SetNode(bool bExcute); private: int m_NodeIdx;//操作node 节点的索引值 Dbxy m_OldPt;//旧的坐标 Dbxy m_NewPt;//新的坐标 };