From d71eec8062e852e56f03102ba4b4e87dc485821d Mon Sep 17 00:00:00 2001 From: docwhat Date: Sun, 14 Nov 1999 06:43:18 +0000 Subject: Initial revision git-svn-id: http://svn.leocad.org/trunk@2 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Mainfrm.h | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 win/Mainfrm.h (limited to 'win/Mainfrm.h') diff --git a/win/Mainfrm.h b/win/Mainfrm.h new file mode 100644 index 0000000..fb5529a --- /dev/null +++ b/win/Mainfrm.h @@ -0,0 +1,96 @@ +// MainFrm.h : interface of the CMainFrame class +// +///////////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_MAINFRM_H__195E1F4E_3FF2_11D2_8202_D2B1707B2D1B__INCLUDED_) +#define AFX_MAINFRM_H__195E1F4E_3FF2_11D2_8202_D2B1707B2D1B__INCLUDED_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "FlatBar.h" +#include "PieceBar.h" +#include "CADBar.h" +#include "BMPMenu.h" +#include "ModDlg.h" + +class CMainFrame : public CFrameWnd +{ +protected: // create from serialization only + CMainFrame(); + DECLARE_DYNCREATE(CMainFrame) + +// Attributes +public: + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CMainFrame) + public: + virtual BOOL PreCreateWindow(CREATESTRUCT& cs); + protected: + virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); + //}}AFX_VIRTUAL + +// Implementation +public: + HMENU NewMenu(); + virtual ~CMainFrame(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +protected: // control bar embedded members + CCADStatusBar m_wndStatusBar; + CFlatToolBar m_wndStandardBar; + CFlatToolBar m_wndToolsBar; + CFlatToolBar m_wndAnimationBar; + CPiecesBar m_wndPiecesBar; + CModifyDialog m_wndModifyDlg; + + CBMPMenu m_bmpMenu; + WINDOWPLACEMENT m_wpPrev; + CToolBar* m_pwndFullScrnBar; + CRect m_FullScreenWindowRect; + +// Generated message map functions +protected: + //{{AFX_MSG(CMainFrame) + afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); + afx_msg void OnClose(); + afx_msg void OnSetFocus(CWnd* pOldWnd); + afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct); + afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu); + afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); + afx_msg void OnViewFullscreen(); + afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); + afx_msg void OnFilePrintPieceList(); + afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); + //}}AFX_MSG + + // Status bar + void GetMessageString(UINT nID, CString& rMessage) const; + + afx_msg void OnPieceBar(UINT nID); + afx_msg void OnUpdatePieceBar(CCmdUI* pCmdUI); + + afx_msg LONG OnUpdateList(UINT lParam, LONG wParam); + afx_msg LONG OnPopupClose(UINT lParam, LONG wParam); + afx_msg LONG OnAddString(UINT lParam, LONG wParam); + afx_msg LONG OnUpdateInfo(UINT lParam, LONG wParam); + afx_msg LONG UpdateSettings(UINT lParam, LONG wParam); + + DECLARE_MESSAGE_MAP() +}; + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Developer Studio will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_MAINFRM_H__195E1F4E_3FF2_11D2_8202_D2B1707B2D1B__INCLUDED_) -- cgit v1.2.3