home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c07 / lab01 / baseline / diffview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.4 KB  |  55 lines

  1. // DiffView.h : interface of the CDiffView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CDiffView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CDiffView();
  9.     DECLARE_DYNCREATE(CDiffView)
  10.  
  11. // Attributes
  12. public:
  13.     CDiffDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CDiffView)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     protected:
  25.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  26.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  27.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  28.     //}}AFX_VIRTUAL
  29.  
  30. // Implementation
  31. public:
  32.     virtual ~CDiffView();
  33. #ifdef _DEBUG
  34.     virtual void AssertValid() const;
  35.     virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37.  
  38. protected:
  39.  
  40. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CDiffView)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.         //    DO NOT EDIT what you see in these blocks of generated code !
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. #ifndef _DEBUG  // debug version in DiffView.cpp
  50. inline CDiffDoc* CDiffView::GetDocument()
  51.    { return (CDiffDoc*)m_pDocument; }
  52. #endif
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55.