ManagerTool.h
资源名称:CAD.zip [点击查看]
上传用户:hehe2haha
上传日期:2013-08-16
资源大小:161k
文件大小:2k
源码类别:
CAD
开发平台:
Visual C++
- // ManagerTool.h: interface for the CManagerTool class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MANAGERTOOL_H__0F004DE4_2EC6_4E69_ADFD_C2BE8F397542__INCLUDED_)
- #define AFX_MANAGERTOOL_H__0F004DE4_2EC6_4E69_ADFD_C2BE8F397542__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "tool.h"
- #include "Shape.h"
- #include "MoveShape.h"
- #include "CopyShape.h"
- #include "MirrorShape.h"
- #define Offset 15
- enum MouseState
- {NoHit,Hit};
- class CManagerTool
- {
- public:
- int copyFlag; //复制标记
- BOOL MirrorFlag; //镜像标记
- MouseState MouseFlag; //鼠标标记
- CTool *m_pCurrentTool;
- CMoveShape *pMoveShape;
- CCopyShape *pCopyShape;
- CMirrorShape *pMirrorShape;
- CShape *pCurShape; //当前被选中的图形
- CShape *pShape; //可以被选中的图形
- POINT ptPrePos; //鼠标前一点位置
- POINT ptBeginPos; //鼠标第一点位置
- int LBDown; //左键按下标记
- public:
- CManagerTool();
- virtual ~CManagerTool();
- public:
- BOOL MirrorObject(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
- void SetCopyShape(CShape *pShape);
- void SetCurActiveTool(unsigned int);
- void SetMirrorShape(CShape *pShape);
- void DrawObject(HWND hWnd,UINT message, WPARAM wParam, LPARAM lParam);
- BOOL EditObject(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
- void OnCurMenuAction(HWND hWnd,unsigned int ID);
- void SetMoveShape(CShape * pShape);
- };
- #endif // !defined(AFX_MANAGERTOOL_H__0F004DE4_2EC6_4E69_ADFD_C2BE8F397542__INCLUDED_)