home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / tutorial / enroll / step4 / mainfrm.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  53 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #define IDW_COURSE_FORM 1
  6. #define IDW_SECTION_FORM 2
  7.  
  8. class CMainFrame : public CFrameWnd
  9. {
  10. protected: // create from serialization only
  11.     CMainFrame();
  12.     DECLARE_DYNCREATE(CMainFrame)
  13.  
  14. // Attributes
  15. public:
  16.  
  17. // Operations
  18. public:
  19.  
  20. // Overrides
  21.     // ClassWizard generated virtual function overrides
  22.     //{{AFX_VIRTUAL(CMainFrame)
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     //}}AFX_VIRTUAL
  25.  
  26. // Implementation
  27. public:
  28.     virtual ~CMainFrame();
  29. #ifdef _DEBUG
  30.     virtual void AssertValid() const;
  31.     virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33.  
  34. protected:  // control bar embedded members
  35.     CStatusBar  m_wndStatusBar;
  36.     CToolBar    m_wndToolBar;
  37.  
  38.     void SwitchToForm(int nForm);
  39.  
  40. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CMainFrame)
  43.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  44.     afx_msg void OnFormCourses();
  45.     afx_msg void OnUpdateFormCourses(CCmdUI* pCmdUI);
  46.     afx_msg void OnFormSections();
  47.     afx_msg void OnUpdateFormSections(CCmdUI* pCmdUI);
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. };
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.