CText.h 866 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef CTEXT
  2. #define CTEXT
  3. #include"CUnit.h"
  4. class CTextEdit;
  5. class CText :public CUnit
  6. {
  7. DECLARE_SERIAL(CText)
  8. public:
  9. virtual void ShowSelectPoint(CDC*pDC);
  10. virtual int IsOnMarginPoint(CPoint point);
  11. virtual BOOL IsInRgn(CPoint point);
  12. void OnMenuitemOk(CDC *pDC, CEastDrawView *pView);
  13. virtual void OnMouseMove(CDC*pDC,CEastDrawView*pView,CPoint point);
  14. virtual void DrawStatic(CDC*pDC);
  15. virtual void ChangeFontSize(ENUMLOGFONT *lpelf);
  16. virtual void ChangeFont(ENUMLOGFONT *lpelf);
  17. virtual void SetFont(ENUMLOGFONT *lpelf);
  18. void SetTextEditPosition(CDC*pDC,CEastDrawView*pView,CPoint point);
  19. virtual void OnLButtonDown(CDC*pDC,CEastDrawView*pView,CPoint point);
  20. virtual void Serialize(CArchive &ar);
  21. CText();
  22. ~CText();
  23. CString m_String;
  24. BOOL m_HaveFinish;
  25. BOOL m_bHaveCreat;
  26. long m_Width;
  27. long m_Hight;
  28. CPoint m_PositionPoint;
  29. };
  30. #endif