Circle.h
资源名称:CAD.zip [点击查看]
上传用户:hehe2haha
上传日期:2013-08-16
资源大小:161k
文件大小:1k
源码类别:
CAD
开发平台:
Visual C++
- // Circle.h: interface for the CCircle class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CIRCLE_H__E30BE1C3_E468_488C_8C8A_0143DDC0585B__INCLUDED_)
- #define AFX_CIRCLE_H__E30BE1C3_E468_488C_8C8A_0143DDC0585B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Shape.h"
- class CCircle : public CShape
- {
- //data
- public:
- int nRadius; //radius
- //Method
- public:
- CCircle();
- virtual ~CCircle();
- virtual BOOL pick(POINT);
- virtual void Draw(HDC);
- virtual void DrawRect(HDC);
- virtual void SaveClassName(ostream &ofstr)
- {
- ofstr<<m_className;
- }
- };
- #endif // !defined(AFX_CIRCLE_H__E30BE1C3_E468_488C_8C8A_0143DDC0585B__INCLUDED_)