MainFrm.h
上传用户:liudazhe
上传日期:2007-01-02
资源大小:51k
文件大小:2k
源码类别:

菜单

开发平台:

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-1997 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. #include "MenuBar.h"
  14. class CMainFrame : public CMDIFrameWnd
  15. {
  16. DECLARE_DYNAMIC(CMainFrame)
  17. public:
  18. CMainFrame();
  19. // Attributes
  20. public:
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CMainFrame)
  26. public:
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. virtual BOOL PreTranslateMessage(MSG* pMsg);
  29. virtual void ActivateFrame(int nCmdShow = -1);
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. virtual ~CMainFrame();
  34. #ifdef _DEBUG
  35. virtual void AssertValid() const;
  36. virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38. protected:  // control bar embedded members
  39. CStatusBar  m_wndStatusBar;
  40. CToolBar    m_wndToolBar;
  41. // Generated message map functions
  42. protected:
  43. CMenuBar m_wndMenuBar;
  44. //{{AFX_MSG(CMainFrame)
  45. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. /////////////////////////////////////////////////////////////////////////////