CPolygon.h 707 B

12345678910111213141516171819202122232425
  1. #ifndef CPOLYGON
  2. #define CPOLYGON
  3. #include"CUnit.h"
  4. class CPolygon:public CUnit
  5. {
  6. DECLARE_SERIAL(CPolygon)
  7. public:
  8. virtual void OnMouseMove(CDC*pDC,CEastDrawView*pView,CPoint point);
  9. virtual void OnLButtonDown(CDC *pDC, CEastDrawView *pView, CPoint point);
  10. virtual void DrawActive(CDC *pDC,CPoint point);
  11. virtual void ShowSelectPoint(CDC *pDC);
  12. virtual void ExchangeDraw(CDC *pDC, CPoint point);
  13. virtual BOOL IsInRgn(CPoint point);
  14. virtual int IsOnMarginPoint(CPoint point);
  15. virtual void DrawEnd(CDC*pDC,CPoint point);
  16. CPolygon();
  17. virtual void DrawMask(CDC*pDC,CPoint point);
  18. virtual void DrawStatic(CDC*pDC);
  19. virtual void Initial();
  20. void Serialize(CArchive &ar);
  21. };
  22. #endif