// MainFrm.h : CMainFrame 클래스의 인터페이스
//


#pragma once

class CMainFrame : public CFrameWnd
{
	
public:
	CMainFrame();
protected: 
	DECLARE_DYNAMIC(CMainFrame)

// 특성입니다.
protected:
	CSplitterWnd		m_wndSplitter;
public:
	CSplitterWnd*		GetSplitterWnd(){ return &m_wndSplitter; }


protected:
	NiViewer*			m_pNiViewer;
	_DlgController*		m_pDlgController;
	_DlgAnimation*		m_pDlgAnimation;
	_DlgEtc*			m_pDlgEtc;

public:
	_DlgController*		_GetDlgController(){ return m_pDlgController; }
	_DlgAnimation*		_GetDlgAnimation(){ return m_pDlgAnimation; }
	_DlgEtc*			_GetDlgEtc(){ return m_pDlgEtc; }


// 작업입니다.
protected:
	void				__NiDelete();
	void				__NiInit();

public:
	void				_Update();
	void				_Render();
#ifdef FIX_TOOL_RESIZE
	void				_SaveWindowRect();
#endif








// 재정의입니다.
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);

// 구현입니다.
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

// 생성된 메시지 맵 함수
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSetFocus(CWnd *pOldWnd);
	DECLARE_MESSAGE_MAP()
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
public:
	afx_msg void OnDestroy();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
};


extern CsGBDX9RendererPtr	g_pRenderer;
extern CMainFrame*			g_pMainWnd;