Shape.h
资源名称:CAD2006.rar [点击查看]
上传用户:ckg1000
上传日期:2013-01-26
资源大小:630k
文件大小:2k
源码类别:
CAD
开发平台:
Visual C++
- // Shape.h: interface for the CShape class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SHAPE_H__E688E529_5C3E_4276_9E09_D372490CDB1D__INCLUDED_)
- #define AFX_SHAPE_H__E688E529_5C3E_4276_9E09_D372490CDB1D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CShape
- {
- public:
- virtual void OnLbuttondown(CDC *pDC,CPoint point);
- virtual void Onmousemove(CDC *pDC,CPoint point);
- void SetBorderWidth(int width);
- void SetBorderStyle(int style);
- void SetBorderColor(COLORREF color);
- void SetBackColor(COLORREF color);
- virtual void Fill();
- virtual void Mirror(CDC *pDoc,CPoint point);
- virtual void Zoom(CDC *pDoc,CPoint point);
- virtual void Rotate(CDC *pDC,CPoint point);
- virtual void Move(CDC *pDoc,CPoint point);
- virtual bool Pick(CDC *pDoc,CPoint point);
- virtual void Draw(CDC * pDoc);
- CShape();
- virtual ~CShape();
- public:
- virtual void KillRound(CDC *pDC);
- virtual void SetPosBorder( POINT *point );
- virtual POINT * GetPosBorder();
- virtual bool SelectOnePt(CDC *pDC,CPoint point);
- virtual void Delete(CDC *pDC);
- virtual void OnMirLBtnDn(CDC *pDC,CPoint point);
- virtual void SetPosEnd(CPoint point);
- virtual void SetPosCenter(CPoint point);
- virtual void SetPosBegin(CPoint point);
- virtual CPoint GetPosEnd();
- virtual CPoint GetPosCenter();
- virtual CPoint GetPosBegin();
- virtual void Update(CDC *pDC);
- virtual bool Select(CDC *pDC,CPoint point);
- static COLORREF m_backColor;
- static COLORREF m_borderColor;
- static int m_borderWidth;
- static int m_borderStyle;
- };
- #endif // !defined(AFX_SHAPE_H__E688E529_5C3E_4276_9E09_D372490CDB1D__INCLUDED_)