HDrawPView.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #if !defined(AFX_HDRAWPVIEW_H__FEB65AFC_F382_46FD_9DCD_67CD1D24062C__INCLUDED_)
  2. #define AFX_HDRAWPVIEW_H__FEB65AFC_F382_46FD_9DCD_67CD1D24062C__INCLUDED_
  3. #include "HDrawView.h" // Added by ClassView
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // HDrawPView.h : header file
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CHDrawPView view
  11. class CHDrawPView : public CScrollView
  12. {
  13. protected:
  14. CHDrawPView(); // protected constructor used by dynamic creation
  15. DECLARE_DYNCREATE(CHDrawPView)
  16. // Attributes
  17. public:
  18. // Operations
  19. public:
  20. CHDrawDoc* GetDocument();
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CHDrawPView)
  24. public:
  25. protected:
  26. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  27. virtual void OnInitialUpdate(); // first time after construct
  28. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. protected:
  32. CHDrawView *m_drawView;
  33. CRectTracker m_tracker;
  34. virtual ~CHDrawPView();
  35. #ifdef _DEBUG
  36. virtual void AssertValid() const;
  37. virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. // Generated message map functions
  40. //{{AFX_MSG(CHDrawPView)
  41. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  43. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. /////////////////////////////////////////////////////////////////////////////
  48. //{{AFX_INSERT_LOCATION}}
  49. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  50. #endif // !defined(AFX_HDRAWPVIEW_H__FEB65AFC_F382_46FD_9DCD_67CD1D24062C__INCLUDED_)