LineTool.h
资源名称:CAD2006.rar [点击查看]
上传用户:ckg1000
上传日期:2013-01-26
资源大小:630k
文件大小:1k
源码类别:
CAD
开发平台:
Visual C++
- // LineTool.h: interface for the CLineTool class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_LINETOOL_H__39A2F2F5_8F14_4351_94E4_EAE2AC17FACA__INCLUDED_)
- #define AFX_LINETOOL_H__39A2F2F5_8F14_4351_94E4_EAE2AC17FACA__INCLUDED_
- #include "Shape.h"
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- enum STATE{noClick, Clicked};
- class CLineTool:public CShape
- {
- public:
- CLineTool();
- virtual ~CLineTool();
- public:
- STATE m_toolState; //工具状态
- // POINT m_ptBeginPos; //起始点坐标
- // POINT m_ptEndPos; //结束点坐标
- POINT m_ptOldPos;
- // int m_borderStyle; //边框样式
- // int m_borderWidth; //边框宽度
- // COLORREF m_borderColor; //边框色
- // COLORREF m_fillColor; //填充色
- public:
- void OnLButtonDown(CPoint point);
- void OnMouseMove(CDC *pDC,CPoint point);
- virtual void Draw(CDC *pDC);
- };
- #endif // !defined(AFX_LINETOOL_H__39A2F2F5_8F14_4351_94E4_EAE2AC17FACA__INCLUDED_)