MainFrm.h
上传用户:cding2008
上传日期:2007-01-03
资源大小:1812k
文件大小:4k
- /////////////////////////////////////////////////////////////////////////////
- // MainFrm.h : Header file; interface of the CMainFrame class
- //
- // ModelMagic 3D and 'glOOP' (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1999
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // Global definitions
- #define RDB_NEW_USER_VIEW 1
- #define RDB_FORCE_REFRESH 2
- /////////////////////////////////////////////////////////////////////////////
- // CMainFrame Class definitions
- class CMainFrame : public CMDIFrameWnd
- {
- DECLARE_DYNAMIC(CMainFrame)
- //Construction
- public:
- CMainFrame();
- // Attributes
- public:
- BOOL m_bWndInitialized;
- BOOL m_bToolTips;
- CStatusBar m_wndStatusBar; // Status Bar class
- CMyTreeDlgBar m_wndTreeDlgBar; // TreeView Dialog bar
- CMyColorDlgBar m_wndColorDlgBar; // Color Dialog bar
- CMyCoordDlgBar m_wndCoordDlgBar; // Coordinate Dialog bar
- CMyToolBar m_wndSceneBar; // Scene Objects Tool bar
- CMyToolBar m_wnd2dShapeBar; // 2d Shape Tool bar
- CMyToolBar m_wnd3dShapeBar; // 3d Shape Tool bar
- CMyToolBar m_wndSelectBar; // Selction Tool bar
- CMyToolBar m_wndCommandBar; // Command Tool bar
- CMyKeyFrameBar m_wndKeyFrameBar; // KeyFrame Animation bar
- CMyglView* m_pActiveView;
- C3dWorld* m_pActiveWorld;
- private:
- CEditColorsDlg* m_pColorDlg;
- CEditMaterialDlg* m_pMaterialDlg;
-
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- CToolBar m_wndToolBar; // control bar embedded members
- // BOOL CreateGLContext(HDC hDC);
- // BOOL SetWindowPixelFormat(HDC hDC);
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnToolsTreeCtrl();
- afx_msg void OnToolsPalette();
- afx_msg void OnUpdateToolsTreeCtrl(CCmdUI* pCmdUI);
- afx_msg void OnUpdateToolsPalette(CCmdUI* pCmdUI);
- afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
- afx_msg BOOL OnQueryNewPalette();
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnWindowNew();
- afx_msg void OnViewMultiview();
- afx_msg void OnUpdateViewMultiview(CCmdUI* pCmdUI);
- afx_msg void OnMaterialEdit();
- afx_msg void OnUpdateToolsCommandBar(CCmdUI* pCmdUI);
- afx_msg void OnToolsCommandBar();
- afx_msg void OnColorsEdit();
- afx_msg void OnHelpOpenGLDiagnostics();
- afx_msg void OnToolsKeyframeBar();
- afx_msg void OnUpdateToolsKeyframeBar(CCmdUI* pCmdUI);
- afx_msg void OnKeyframeDecrease();
- afx_msg void OnUpdateTime();
- afx_msg void OnKeyframeIncrease();
- afx_msg void OnUpdateKeyframeDecrease(CCmdUI* pCmdUI);
- afx_msg void OnToolsCoordinates();
- afx_msg void OnUpdateToolsCoordinates(CCmdUI* pCmdUI);
- afx_msg void OnToolsSelectBar();
- afx_msg void OnUpdateToolsSelectBar(CCmdUI* pCmdUI);
- afx_msg void OnTools2dshapeBar();
- afx_msg void OnUpdateTools2dshapeBar(CCmdUI* pCmdUI);
- afx_msg void OnTools3dshapeBar();
- afx_msg void OnUpdateTools3dshapeBar(CCmdUI* pCmdUI);
- afx_msg void OnToolsSceneBar();
- afx_msg void OnUpdateToolsSceneBar(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- // User defined messages
- long OnRefreshDlgBar(WPARAM wParam, LPARAM lParam);
- };
- /////////////////////////////////////////////////////////////////////////////