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++
34 lines
1.1 KiB
C++
#pragma once
|
|
#include "GlobalDefine.h"
|
|
#include "MouseTool.h"
|
|
|
|
|
|
class CMouseTool;
|
|
//柑깃묏야밗잿
|
|
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;};//삿혤묏야잚謹
|
|
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;//뎠품돨묏야잚謹
|
|
MOUSE_TOOL m_OldMouseToolType;//裂품돨묏야잚謹
|
|
CMouseTool *m_pMouseTool;//뎠품돨묏야
|
|
};
|
|
extern CMouseToolMgr gMouseToolMgr; |