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

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