home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c05 / lab06 / ex04 / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.7 KB  |  64 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.     void ResetFile( int nID, const CString & str );
  9.     void AddItem( int nID, const CString & str );
  10.     CDialogBar m_wndDialogBar;
  11.     CMainFrame();
  12.     DECLARE_DYNCREATE(CMainFrame)
  13.  
  14. // Attributes
  15. public:
  16.     void SetList( int nID, const CString & strFile );
  17.     enum { LEFT = IDC_LEFT, RIGHT = IDC_RIGHT };
  18.     
  19.     CSplitter* GetSplitter() { return &m_wndSplitter; }
  20.     CProgressStatusBar *GetStatusBar() 
  21.                         { return &m_wndStatusBar; }
  22.  
  23. // Operations
  24. public:
  25.  
  26. // Overrides
  27.     // ClassWizard generated virtual function overrides
  28.     //{{AFX_VIRTUAL(CMainFrame)
  29.     public:
  30.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  31.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32.     protected:
  33.     virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  34.     //}}AFX_VIRTUAL
  35.  
  36. // Implementation
  37. public:
  38.     virtual ~CMainFrame();
  39. #ifdef _DEBUG
  40.     virtual void AssertValid() const;
  41.     virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43.  
  44. protected:  // control bar embedded members
  45.     CProgressStatusBar  m_wndStatusBar;
  46.     CToolBar    m_wndToolBar;
  47.     CSplitter    m_wndSplitter;
  48.  
  49.  
  50. // Generated message map functions
  51. protected:
  52.     //{{AFX_MSG(CMainFrame)
  53.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  54.     afx_msg void OnDropFiles(HDROP hDropInfo);
  55.     afx_msg void OnViewDialogbar();
  56.     afx_msg void OnUpdateViewDialogbar(CCmdUI* pCmdUI);
  57.     //}}AFX_MSG
  58.     
  59.     afx_msg void OnSelendokLeft();    
  60.     DECLARE_MESSAGE_MAP()
  61. };
  62.  
  63. /////////////////////////////////////////////////////////////////////////////
  64.