CRectangle.h 541 B

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