home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c06 / lab03 / ex01 / diffview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.6 KB  |  62 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.     CHARFORMAT m_CharacterFormat;
  9.     CDiffView();
  10.     DECLARE_DYNCREATE(CDiffView)
  11.  
  12. // Attributes
  13. public:
  14.     CDiffDoc* GetDocument();
  15.  
  16. // Operations
  17. public:
  18.  
  19. // Overrides
  20.     // ClassWizard generated virtual function overrides
  21.     //{{AFX_VIRTUAL(CDiffView)
  22.     public:
  23.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  24.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25.     virtual void OnInitialUpdate();
  26.     protected:
  27.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  28.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  29.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  30.     //}}AFX_VIRTUAL
  31.  
  32. // Implementation
  33. public:
  34.     virtual ~CDiffView();
  35. #ifdef _DEBUG
  36.     virtual void AssertValid() const;
  37.     virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39.  
  40. protected:
  41.  
  42.  
  43. // Generated message map functions
  44. protected:
  45.     //{{AFX_MSG(CDiffView)
  46.     afx_msg void OnContextMenu(CWnd *pWnd, CPoint point);
  47.     afx_msg void OnDropFiles(HDROP hDropInfo);
  48.     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  49.     afx_msg void OnEditFont();
  50.     afx_msg void OnEditColorBackground();
  51.     afx_msg void OnEditColorForeground();
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. #ifndef _DEBUG  // debug version in diffView.cpp
  57. inline CDiffDoc* CDiffView::GetDocument()
  58.    { return (CDiffDoc*)m_pDocument; }
  59. #endif
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.