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

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