- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__7F09879A_D806_11D2_8830_E0646867975D__INCLUDED_)
- #define AFX_MAINFRM_H__7F09879A_D806_11D2_8830_E0646867975D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "MiniCAD.h"
- #include "MyOptionBar.h"
- #include "workbar.h"
- #include "ChildFrm.h"
- class CMainFrame : public CMDIFrameWnd
- {
- DECLARE_DYNAMIC(CMainFrame)
- public:
- CMainFrame();
- // Attributes
- public:
- CToolBar m_wndToolBar; //标准工具条
- CStatusBar m_wndStatusBar; //状态工具条
- COptionBar m_MyOptionBar; //选项工具条
- CToolBar m_MyDrawToolBar; //绘画工具条
- CToolBar m_MyModifyToolBar; //修改工具条
- CMyWorkBar m_MyWorkBar;
- //全屏显示的子框架指针
- CChildFrame* m_pWndFullScreen;
- WINDOWPLACEMENT m_ChildOldPlace;
- WINDOWPLACEMENT m_MainOldPlace;
- CRect m_FullScreenPlace;
- protected:
- CMiniCADApp* pApp;
- BOOL OpenProject(CString PathName);
- // Operations
- public:
- //获取全屏显示时的主框架尺寸
- BOOL GetFullScreenSize(CWnd* pWnd, POINT& pt);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnViewMydrawtoolbar(UINT nID);
- afx_msg void OnUpdateViewMydrawtoolbar(CCmdUI* pCmdUI);
- afx_msg void OnFileNewF();
- afx_msg void OnFileOpenF();
- afx_msg void OnFileNewP();
- afx_msg void OnFileOpenP();
- afx_msg void OnFileNewFToP();
- afx_msg void OnUpdateFileNewFToP(CCmdUI* pCmdUI);
- afx_msg void OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnClickTree(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDblclkTree(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnViewFull();
- afx_msg void OnUpdateViewFull(CCmdUI* pCmdUI);
- afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
- afx_msg void OnFileOpenFToP();
- afx_msg void OnUpdateFileOpenFToP(CCmdUI* pCmdUI);
- afx_msg void OnFileSaveP();
- afx_msg void OnClose();
- afx_msg void OnFileCloseP();
- afx_msg void OnFileCloseF();
- afx_msg void OnFileSaveF();
- afx_msg void OnFileSaveFAs();
- afx_msg void OnFileSaveall();
- //}}AFX_MSG
- afx_msg void OnFileFilelist(UINT nID);
- afx_msg void OnUpdateFileFilelist(CCmdUI* pCmdUI);
- afx_msg void OnFileProjectlist(UINT nID);
- afx_msg void OnUpdateFileProjectlist(CCmdUI* pCmdUI);
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__7F09879A_D806_11D2_8830_E0646867975D__INCLUDED_)