home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c05 / lab06 / ex02 / 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 CMainFrame : public CFrameWnd
  6. {
  7. protected: // create from serialization only
  8.     CDialogBar m_wndDialogBar;
  9.     CMainFrame();
  10.     DECLARE_DYNCREATE(CMainFrame)
  11.  
  12. // Attributes
  13. public:
  14.     CSplitter* GetSplitter() { return &m_wndSplitter; }
  15.     CProgressStatusBar *GetStatusBar() 
  16.                         { return &m_wndStatusBar; }
  17.  
  18. // Operations
  19. public:
  20.     void SetList( int nID, const CString & strFile );
  21.     enum { LEFT = IDC_LEFT, RIGHT = IDC_RIGHT };
  22.  
  23. protected: 
  24.     void AddItem( int nID, const CString & str );
  25.     void ResetFile( int nID, const CString & str );
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CMainFrame)
  30.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  31.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32.     //}}AFX_VIRTUAL
  33.  
  34. // Implementation
  35. public:
  36.     virtual ~CMainFrame();
  37. #ifdef _DEBUG
  38.     virtual void AssertValid() const;
  39.     virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41.  
  42. protected:  // control bar embedded members
  43.     CProgressStatusBar  m_wndStatusBar;
  44.     CToolBar    m_wndToolBar;
  45.     CSplitter    m_wndSplitter;
  46.  
  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 OnViewDialogbar();
  54.     afx_msg void OnUpdateViewDialogbar(CCmdUI* pCmdUI);
  55.     //}}AFX_MSG
  56.     DECLARE_MESSAGE_MAP()
  57. };
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.