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

  1. // diffDoc.h : interface of the CDiffDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CDiffDoc : public CRichEditDoc
  6. {
  7. protected: // create from serialization only
  8.     CDiffDoc();
  9.     DECLARE_DYNCREATE(CDiffDoc)
  10.  
  11. // Attributes
  12. public:
  13.  
  14. // Operations
  15. public:
  16.  
  17. // Overrides
  18.     // ClassWizard generated virtual function overrides
  19.     //{{AFX_VIRTUAL(CDiffDoc)
  20.     public:
  21.     virtual BOOL OnNewDocument();
  22.     virtual void Serialize(CArchive& ar);
  23.     //}}AFX_VIRTUAL
  24.     virtual CRichEditCntrItem* CreateClientItem(REOBJECT* preo) const;
  25.  
  26. // Implementation
  27. public:
  28.     virtual ~CDiffDoc();
  29. #ifdef _DEBUG
  30.     virtual void AssertValid() const;
  31.     virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33.     void RunComparison(LPCSTR lpszFile1, LPCSTR lpszFile2);
  34.  
  35. protected:
  36.     CString m_File1;
  37.     CString m_File2;
  38.  
  39. // Generated message map functions
  40. protected:
  41.     //{{AFX_MSG(CDiffDoc)
  42.     afx_msg void OnFileOpen();
  43.     //}}AFX_MSG
  44.     DECLARE_MESSAGE_MAP()
  45. };
  46.  
  47. /////////////////////////////////////////////////////////////////////////////
  48.