mfc1View.h 982 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // mfc1View.h : interface of the Cmfc1View class
  2. //
  3. #pragma once
  4. class Cmfc1View : public CView
  5. {
  6. protected: // create from serialization only
  7. Cmfc1View();
  8. DECLARE_DYNCREATE(Cmfc1View)
  9. // Attributes
  10. public:
  11. Cmfc1Doc* GetDocument() const;
  12. // Operations
  13. public:
  14. // Overrides
  15. public:
  16. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  17. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  18. protected:
  19. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  20. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  21. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  22. // Implementation
  23. public:
  24. virtual ~Cmfc1View();
  25. #ifdef _DEBUG
  26. virtual void AssertValid() const;
  27. virtual void Dump(CDumpContext& dc) const;
  28. #endif
  29. protected:
  30. // Generated message map functions
  31. protected:
  32. DECLARE_MESSAGE_MAP()
  33. };
  34. #ifndef _DEBUG // debug version in mfc1View.cpp
  35. inline Cmfc1Doc* Cmfc1View::GetDocument() const
  36. { return reinterpret_cast<Cmfc1Doc*>(m_pDocument); }
  37. #endif