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

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