MainFrm.h
上传用户:taoguanmin
上传日期:2007-05-11
资源大小:180k
文件大小:2k
源码类别:

2D图形编程

开发平台:

Visual C++

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__D86207D0_1207_4144_98A4_07387A0F3314__INCLUDED_)
  5. #define AFX_MAINFRM_H__D86207D0_1207_4144_98A4_07387A0F3314__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CMainFrame : public CFrameWnd
  10. {
  11. protected: // create from serialization only
  12. CMainFrame();
  13. DECLARE_DYNCREATE(CMainFrame)
  14. // Attributes
  15. public:
  16. // Operations
  17. public:
  18. // Overrides
  19. // ClassWizard generated virtual function overrides
  20. //{{AFX_VIRTUAL(CMainFrame)
  21. public:
  22. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  23. virtual void ActivateFrame(int nCmdShow = -1);
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. public:
  27. virtual ~CMainFrame();
  28. #ifdef _DEBUG
  29. virtual void AssertValid() const;
  30. virtual void Dump(CDumpContext& dc) const;
  31. #endif
  32. public:
  33. CStatusBar* GetStatusBar(){return &m_wndStatusBar;};
  34. protected:  // control bar embedded members
  35. CStatusBar  m_wndStatusBar;
  36. CToolBar    m_wndToolBar;
  37. // Generated message map functions
  38. protected:
  39. //{{AFX_MSG(CMainFrame)
  40. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  41. afx_msg void OnClose();
  42. afx_msg void OnExit();
  43. //}}AFX_MSG
  44. DECLARE_MESSAGE_MAP()
  45. };
  46. /////////////////////////////////////////////////////////////////////////////
  47. //{{AFX_INSERT_LOCATION}}
  48. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  49. #endif // !defined(AFX_MAINFRM_H__D86207D0_1207_4144_98A4_07387A0F3314__INCLUDED_)