TextEdit.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #if !defined(AFX_TEXTEDIT_H__DDDF3BEE_ED75_40D9_B233_1E43EEDCAFBF__INCLUDED_)
  2. #define AFX_TEXTEDIT_H__DDDF3BEE_ED75_40D9_B233_1E43EEDCAFBF__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TextEdit.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CTextEdit window
  10. class CTextEdit : public CEdit
  11. {
  12. // Construction
  13. public:
  14. CTextEdit();
  15. CString m_String;
  16. BOOL m_IsMoving;
  17. BOOL m_IsOnMoving;
  18. CPoint m_FirstPoint;
  19. CPoint m_SecondPoint;
  20. CPoint m_PositionPoint;
  21. BOOL m_Sizing;
  22. CFont *m_Font;
  23. // Attributes
  24. public:
  25. // Operations
  26. public:
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CTextEdit)
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. void SetMyFont(CFont *font);
  34. virtual ~CTextEdit();
  35. // Generated message map functions
  36. protected:
  37. //{{AFX_MSG(CTextEdit)
  38. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  39. afx_msg void OnUnDo();
  40. afx_msg void OnCut();
  41. afx_msg void OnCopy();
  42. afx_msg void OnPast();
  43. afx_msg void OnDelete();
  44. afx_msg void OnSelectAll();
  45. afx_msg void OnMove();
  46. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  47. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  48. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  49. afx_msg void OnMENUITEMSize();
  50. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. /////////////////////////////////////////////////////////////////////////////
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_TEXTEDIT_H__DDDF3BEE_ED75_40D9_B233_1E43EEDCAFBF__INCLUDED_)