home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c05 / lab06 / ex03 / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.6 KB  |  62 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.     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 void OnViewDialogbar();
  53.     afx_msg void OnUpdateViewDialogbar(CCmdUI* pCmdUI);
  54.     //}}AFX_MSG
  55.  
  56.     afx_msg void OnSelendokLeft();
  57.  
  58.     DECLARE_MESSAGE_MAP()
  59. };
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.