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

  1. // diffView.h : interface of the CDiffView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CDiffView : public CRichEditView
  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.     virtual void OnInitialUpdate();
  25.     protected:
  26.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  27.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  28.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  29.     //}}AFX_VIRTUAL
  30.  
  31. // Implementation
  32. public:
  33.     virtual ~CDiffView();
  34. #ifdef _DEBUG
  35.     virtual void AssertValid() const;
  36.     virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38.  
  39. protected:
  40.  
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CDiffView)
  44.     afx_msg void OnDropFiles(HDROP hDropInfo);
  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.