mfc1View.h 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. {
  37. return reinterpret_cast<Cmfc1Doc*>(m_pDocument);
  38. }
  39. #endif