home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c06 / lab03 / baseline / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  51 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.  
  17. // Operations
  18. public:
  19.  
  20. // Overrides
  21.     // ClassWizard generated virtual function overrides
  22.     //{{AFX_VIRTUAL(CMainFrame)
  23.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  24.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25.     //}}AFX_VIRTUAL
  26.  
  27. // Implementation
  28. public:
  29.     virtual ~CMainFrame();
  30. #ifdef _DEBUG
  31.     virtual void AssertValid() const;
  32.     virtual void Dump(CDumpContext& dc) const;
  33. #endif
  34.  
  35. protected:  // control bar embedded members
  36.     CProgressStatusBar  m_wndStatusBar;
  37.     CToolBar    m_wndToolBar;
  38.     CSplitter    m_wndSplitter;
  39.  
  40.  
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CMainFrame)
  44.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45.     afx_msg void OnDropFiles(HDROP hDropInfo);
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48. };
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51.