home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / daoenrol / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.7 KB  |  63 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #define IDW_COURSE_FORM 1
  14. #define IDW_SECTION_FORM 2
  15.  
  16. class CMainFrame : public CFrameWnd
  17. {
  18. protected: // create from serialization only
  19.     CMainFrame();
  20.     DECLARE_DYNCREATE(CMainFrame)
  21.  
  22. // Attributes
  23. public:
  24.  
  25. // Operations
  26. public:
  27.  
  28. // Overrides
  29.     // ClassWizard generated virtual function overrides
  30.     //{{AFX_VIRTUAL(CMainFrame)
  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.     CStatusBar  m_wndStatusBar;
  44.     CToolBar    m_wndToolBar;
  45.  
  46.     void SwitchToForm(int nForm);
  47.  
  48. // Generated message map functions
  49. protected:
  50.     //{{AFX_MSG(CMainFrame)
  51.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  52.     afx_msg void OnFormCourses();
  53.     afx_msg void OnUpdateFormCourses(CCmdUI* pCmdUI);
  54.     afx_msg void OnFormSections();
  55.     afx_msg void OnUpdateFormSections(CCmdUI* pCmdUI);
  56.         // NOTE - the ClassWizard will add and remove member functions here.
  57.         //    DO NOT EDIT what you see in these blocks of generated code!
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63.