00001
00002
00003
#if !defined(AFX_MAINFRM_H__5AE13B82_6DED_47B2_B145_C4BB01E37759__INCLUDED_)
00004
#define AFX_MAINFRM_H__5AE13B82_6DED_47B2_B145_C4BB01E37759__INCLUDED_
00005
00006
#include "ChildFrm.h"
00007
#include "SettingsDlg.h"
00008
#include "AddTextureSettings.h"
00009
#include "AddMaterialSettings.h"
00010
#include "AddAnimationSettings.h"
00011
#include "AddFontSettings.h"
00012
00013
#include "InputEngine.h"
00014
00015
class CMainFrame :
public CGuiMDIFrame
00016 {
00017 DECLARE_DYNAMIC(CMainFrame)
00018 public:
00019 CMainFrame();
00020
00021
00022 public:
00023
bool m_bStyleSet;
00024 CSettingsDlg m_GUISettingsDlg;
00025 CSettingsDlg m_ResourceSettingsDlg;
00026
00027 CChildFrame *m_pActiveFrame;
00028
CGUIElement *m_pGUIElement;
00029
00030 CAddResourceSettings *m_pResourceSettings;
00031 CAddTextureSettings *m_pTextureSettings;
00032 CAddMaterialSettings *m_pMaterialSettings;
00033 CAddAnimationSettings *m_pAnimationSettings;
00034 CAddFontSettings *m_pFontSettings;
00035
00036 BOOL SetWindowPixelFormat(HDC hDC);
00037 BOOL CreateViewGLContext(HDC hDC);
00038
00039
void SelectElement(
CGUIElement *pElement);
00040 HGLRC m_hRC;
00041
00042 public:
00043
bool m_bAppIsActive;
00044
00045
00046
00047 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00048
00049
00050
00051 public:
00052 virtual ~CMainFrame();
00053 #ifdef _DEBUG
00054 virtual
void AssertValid() const;
00055 virtual
void Dump(CDumpContext& dc) const;
00056 #endif
00057
00058 protected:
00059
00060 protected:
00061
00062 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
00063 afx_msg
void OnTimer(UINT nIDEvent);
00064 afx_msg
void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd );
00065 afx_msg
void OnAlignLeft();
00066 afx_msg
void OnAlignTop();
00067 afx_msg
void OnAlignRight();
00068 afx_msg
void OnAlignBottom();
00069 afx_msg
void OnSameWidth();
00070 afx_msg
void OnSameHeight();
00071 afx_msg
void OnSameSize();
00072
00073 DECLARE_MESSAGE_MAP()
00074 public:
00075 afx_msg
void OnActivateApp(BOOL bActive, DWORD dwThreadID);
00076 afx_msg
void OnDestroy();
00077 };
00078
00079 #endif
00080