home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c03 / lab01 / ex01 / lab3_1view.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.9 KB  |  67 lines

  1. // Lab3_1View.h : interface of the CLab3_1View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_LAB3_1VIEW_H__297F0CED_6C9A_11D0_BC05_00AA00680A10__INCLUDED_)
  6. #define AFX_LAB3_1VIEW_H__297F0CED_6C9A_11D0_BC05_00AA00680A10__INCLUDED_
  7.  
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11.  
  12. class CLab3_1View : public CView
  13. {
  14. protected: // create from serialization only
  15.     CLab3_1View();
  16.     DECLARE_DYNCREATE(CLab3_1View)
  17.  
  18. // Attributes
  19. public:
  20.     CLab3_1Doc* GetDocument();
  21.  
  22. // Operations
  23. public:
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CLab3_1View)
  28.     public:
  29.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  30.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  31.     protected:
  32.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  33.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  34.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CLab3_1View();
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CLab3_1View)
  50.         // NOTE - the ClassWizard will add and remove member functions here.
  51.         //    DO NOT EDIT what you see in these blocks of generated code !
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. #ifndef _DEBUG  // debug version in Lab3_1View.cpp
  57. inline CLab3_1Doc* CLab3_1View::GetDocument()
  58.    { return (CLab3_1Doc*)m_pDocument; }
  59. #endif
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.  
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  65.  
  66. #endif // !defined(AFX_LAB3_1VIEW_H__297F0CED_6C9A_11D0_BC05_00AA00680A10__INCLUDED_)
  67.