/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2006.12.02 * ³» ¿ë : ¸ÞÀÎ ÇÁ·¹ÀÓ * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cTabWindow; class cRegenToolView; class cObjectEditor; /// ¸ÞÀÎ ÇÁ·¹ÀÓ class cMainFrame : public CFrameWnd { static cMainFrame* mSingleton; DECLARE_DYNAMIC(cMainFrame) public: cMainFrame(); virtual ~cMainFrame(); /// ¸ÊÀ» ·Îµù: ÁöÇü, ³×ºñÇʵå, ³×ºñ¸Þ½Ã, Àå¸é ... void LoadMap( cString pathName ); public: virtual BOOL PreCreateWindow( CREATESTRUCT& cs ); virtual BOOL OnCreateClient( LPCREATESTRUCT cs, CCreateContext* pcontext ); public: #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: afx_msg int OnCreate( LPCREATESTRUCT cs ); afx_msg void OnClose(); afx_msg void OnSaveAll(); afx_msg void OnEscape(); DECLARE_MESSAGE_MAP() public: /// ´ÜÀÏü¸¦ ¸®ÅÏ static cMainFrame* GetSingleton(); protected: ///// ÅÇ À©µµ¿ì //cTabWindow* mTabWindow; ///// ºä //cRegenToolView* mView; /// ½ºÇø®ÅÍ CSplitterWnd mSplitter; /// ÆÄÀÏ À̸§ //cString mTerrainName; }; inline cMainFrame* cMainFrame::GetSingleton() { return mSingleton; } #define MAIN cMainFrame::GetSingleton()