00001
00002
00003
00004 #pragma once
00005
00033 class CMainFrame : public CFrameWnd
00034 {
00035
00036 protected:
00037 CMainFrame();
00038 DECLARE_DYNCREATE(CMainFrame)
00039
00040
00041 public:
00042
00043
00044 public:
00045
00046
00047 public:
00048 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00049 virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
00050
00051
00052 public:
00053 virtual ~CMainFrame();
00054 #ifdef _DEBUG
00055 virtual void AssertValid() const;
00056 virtual void Dump(CDumpContext& dc) const;
00057 #endif
00058
00059 protected:
00060 CStatusBar m_wndStatusBar;
00061 CToolBar m_wndToolBar;
00062
00063 protected:
00064 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00065 afx_msg void OnFileClose();
00066 DECLARE_MESSAGE_MAP()
00067 };
00068
00069