CRoundArc.h 670 B

123456789101112131415161718192021
  1. #ifndef CROUNDARC
  2. #define CROUNDARC
  3. #include"CUnit.h"
  4. class CRoundArc:public CUnit
  5. {
  6. DECLARE_SERIAL(CRoundArc)
  7. public:
  8. virtual void OnMouseMove(CDC*pDC,CEastDrawView*pView,CPoint point);
  9. virtual void OnLButtonDown(CDC *pDC, CEastDrawView *pView, CPoint point);
  10. virtual int IsOnMarginPoint(CPoint point);
  11. virtual void ShowSelectPoint(CDC*pDC);
  12. virtual BOOL IsInRgn(CPoint point);
  13. virtual void Serialize(CArchive &ar);
  14. virtual void DrawActive(CDC *pDC,CPoint point);
  15. virtual double ComputeSloap2(CPoint firstpoint,CPoint secondpoint);
  16. virtual double ComputeSloap1(CPoint firstpoint,CPoint secondpoint);
  17. virtual void DrawStatic(CDC*pDC);
  18. CRoundArc();
  19. };
  20. #endif