Draw.h
上传用户:hehe2haha
上传日期:2013-08-16
资源大小:161k
文件大小:1k
源码类别:

CAD

开发平台:

Visual C++

  1. // Draw.h: interface for the Draw class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DRAW_H__A758E7C4_F03D_4845_86BD_C2B784E23253__INCLUDED_)
  5. #define AFX_DRAW_H__A758E7C4_F03D_4845_86BD_C2B784E23253__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CDraw  
  10. {
  11. public:
  12. CDraw();
  13. virtual ~CDraw();
  14. public:
  15. static void DrawLine(HDC hdc,POINT ptFirstPos, POINT ptSecondPos);
  16. static void DrawCircle(HDC hdc,POINT ptCenter,int nRadius);
  17. static int  Distance(POINT ptPos1, POINT ptPos2);
  18. };
  19. #endif // !defined(AFX_DRAW_H__A758E7C4_F03D_4845_86BD_C2B784E23253__INCLUDED_)