home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c06 / lab05 / baseline / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.6 KB  |  60 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CFindDifferenceDialog;
  6.  
  7. class CMainFrame : public CFrameWnd
  8. {
  9. protected: // create from serialization only
  10.     CMainFrame();
  11.     DECLARE_DYNCREATE(CMainFrame)
  12.  
  13. // Attributes
  14. public:
  15.     CSplitter* GetSplitter() { return &m_wndSplitter; }
  16.     CProgressStatusBar *GetStatusBar() 
  17.                         { return &m_wndStatusBar; }
  18.     //ADDED HERE!!!!!!
  19.     CDiffView *GetView(int nColumn);
  20.  
  21. // Operations
  22. public:
  23.  
  24. // Overrides
  25.     // ClassWizard generated virtual function overrides
  26.     //{{AFX_VIRTUAL(CMainFrame)
  27.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  28.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29.     //}}AFX_VIRTUAL
  30.  
  31. // Implementation
  32. public:
  33.     virtual ~CMainFrame();
  34. #ifdef _DEBUG
  35.     virtual void AssertValid() const;
  36.     virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38.  
  39. protected:  // control bar embedded members
  40.     CProgressStatusBar        m_wndStatusBar;
  41.     CToolBar                m_wndToolBar;
  42.     CSplitter                m_wndSplitter;
  43.     CFindDifferenceDialog*    m_pFindDiffDlg;
  44.  
  45.     void OnFindNextDifference(BOOL bSearchDown, 
  46.                               BOOL bNextDifference);    
  47.  
  48. // Generated message map functions
  49. protected:
  50.     //{{AFX_MSG(CMainFrame)
  51.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  52.     afx_msg void OnDropFiles(HDROP hDropInfo);
  53.     afx_msg void OnEditFindDiff();
  54.     //}}AFX_MSG
  55.     afx_msg LRESULT OnFindDifferenceCmd (WPARAM, LPARAM lParam);
  56.     DECLARE_MESSAGE_MAP()
  57. };
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.