MAINFRM.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  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. #define IDW_COURSE_FORM 1
  13. #define IDW_SECTION_FORM 2
  14. class CMainFrame : public CFrameWnd
  15. {
  16. protected: // create from serialization only
  17. CMainFrame();
  18. DECLARE_DYNCREATE(CMainFrame)
  19. // Attributes
  20. public:
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CMainFrame)
  26. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. public:
  30. virtual ~CMainFrame();
  31. #ifdef _DEBUG
  32. virtual void AssertValid() const;
  33. virtual void Dump(CDumpContext& dc) const;
  34. #endif
  35. protected:  // control bar embedded members
  36. CStatusBar  m_wndStatusBar;
  37. CToolBar    m_wndToolBar;
  38. void SwitchToForm(int nForm);
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CMainFrame)
  42. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  43. afx_msg void OnFormCourses();
  44. afx_msg void OnUpdateFormCourses(CCmdUI* pCmdUI);
  45. afx_msg void OnFormSections();
  46. afx_msg void OnUpdateFormSections(CCmdUI* pCmdUI);
  47. // NOTE - the ClassWizard will add and remove member functions here.
  48. //    DO NOT EDIT what you see in these blocks of generated code!
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. /////////////////////////////////////////////////////////////////////////////