home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c07 / lab02 / ex03 / 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.     void RunComparison(LPCSTR lpszFile1, LPCSTR lpszFile2);
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CDiffDoc)
  21.     public:
  22.     virtual BOOL OnNewDocument();
  23.     virtual void Serialize(CArchive& ar);
  24.     //}}AFX_VIRTUAL
  25.     virtual CRichEditCntrItem* CreateClientItem(REOBJECT* preo) const;
  26.  
  27. // Implementation
  28. public:
  29.     virtual ~CDiffDoc();
  30. #ifdef _DEBUG
  31.     virtual void AssertValid() const;
  32.     virtual void Dump(CDumpContext& dc) const;
  33. #endif
  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.