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

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