home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c06 / lab05 / ex01 / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.6 KB  |  62 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.     void OnProperties();
  16.     CSplitter* GetSplitter() { return &m_wndSplitter; }
  17.     CProgressStatusBar *GetStatusBar() 
  18.                         { return &m_wndStatusBar; }
  19.     //ADDED HERE!!!!!!
  20.     CDiffView *GetView(int nColumn);
  21.  
  22. // Operations
  23. public:
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CMainFrame)
  28.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  29.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30.     //}}AFX_VIRTUAL
  31.  
  32. // Implementation
  33. public:
  34.     virtual ~CMainFrame();
  35. #ifdef _DEBUG
  36.     virtual void AssertValid() const;
  37.     virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39.  
  40. protected:  // control bar embedded members
  41.     CProgressStatusBar        m_wndStatusBar;
  42.     CToolBar                m_wndToolBar;
  43.     CSplitter                m_wndSplitter;
  44.     CFindDifferenceDialog*    m_pFindDiffDlg;
  45.  
  46.     void OnFindNextDifference(BOOL bSearchDown, 
  47.                               BOOL bNextDifference);    
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CMainFrame)
  52.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  53.     afx_msg void OnDropFiles(HDROP hDropInfo);
  54.     afx_msg void OnEditFindDiff();
  55.     afx_msg void OnViewPreferences();
  56.     //}}AFX_MSG
  57.     afx_msg LRESULT OnFindDifferenceCmd (WPARAM, LPARAM lParam);
  58.     DECLARE_MESSAGE_MAP()
  59. };
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.