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.

19 lines
574 B
C++

#pragma once
#include "mousetool.h"
//移动节点工具
class CMouseToolMoveNode :public CMouseTool
{
public:
CMouseToolMoveNode(void);
~CMouseToolMoveNode(void);
virtual void OnLButtonUp(UINT nFlags, CPoint point,CClientDC &dc);
virtual void OnMouseMove(UINT nFlags, CPoint point,CClientDC &dc);
virtual void OnLButtonDown(UINT nFlags, CPoint point,CClientDC &dc);
virtual bool NeedToPointTool(){return true;};
private:
int m_NodeIdx;//当前操作node 节点的索引值
Dbxy m_OldPt;//旧的坐标
Dbxy m_NewPt;//新的坐标
};