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.

34 lines
1.1 KiB
C

#pragma once
#include "GlobalDefine.h"
#include "MouseTool.h"
class CMouseTool;
//<2F><><EFBFBD><EFBFBD>߹<EFBFBD><DFB9><EFBFBD>
class CMouseToolMgr
{
public:
CMouseToolMgr(void);
~CMouseToolMgr(void);
void ReleseTool();
void SetMouseTool(MOUSE_TOOL MouseTool);
void OnLButtonDown(UINT nFlags, CPoint point,CClientDC &dc);
void OnLButtonUp(UINT nFlags, CPoint point,CClientDC &dc);
void OnRButtonDown(UINT nFlags, CPoint point,CClientDC &dc);
void OnRButtonUp(UINT nFlags, CPoint point,CClientDC &dc);
void OnMouseMove(UINT nFlags, CPoint point,CClientDC &dc);
MOUSE_TOOL GetToolType(){return m_MouseToolType;};//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void ResetMouseToolPoint();
void OnEscapeKey(CDC* pDC);
void ResetCatchPoint(CDC* pDC);
bool OnSetCmd(CString str);
private:
CMouseTool * CreatMouseTool(MOUSE_TOOL MouseTool);
void ChangeMouseTool(UINT nFlags, CPoint point);
void CatchPoint(CPoint point,CClientDC &dc);
private:
MOUSE_TOOL m_MouseToolType;//<2F><>ǰ<EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
MOUSE_TOOL m_OldMouseToolType;//֮ǰ<D6AE>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
CMouseTool *m_pMouseTool;//<2F><>ǰ<EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>
};
extern CMouseToolMgr gMouseToolMgr;