// EmulatorView.h : iCEmulatorView Ŭ·¡½ºÀÇ ÀÎÅÍÆäÀ̽º // #pragma once class CEmulatorView : public CView, public CD3DApplication { private: BOOL m_bCreated; CString m_strCharSetFile; CString m_strMapList; BOOL bGmRights; HCURSOR m_hCursorDefault; private: HRESULT ConfirmDevice( D3DCAPSQ*,DWORD,D3DFORMAT ); HRESULT OneTimeSceneInit(); HRESULT CreateObjects(); HRESULT InitDeviceObjects(); HRESULT RestoreDeviceObjects(); HRESULT FrameMove(); HRESULT Render(); HRESULT InvalidateDeviceObjects(); HRESULT DeleteDeviceObjects(); HRESULT FinalCleanup(); HRESULT RenderText(); HRESULT ReSizeWindow ( int cx, int cy ) { if ( cx < 10 ) cx = 10; if ( cy < 10 ) cy = 10; m_d3dpp.BackBufferWidth = cx; m_d3dpp.BackBufferHeight = cy; return Resize3DEnvironment(); } public: void SetActive ( BOOL bActive ); public: virtual HRESULT FrameMove3DEnvironment(); virtual HRESULT Render3DEnvironment(); protected: // serialization¿¡¼­¸¸ ¸¸µé¾îÁý´Ï´Ù. CEmulatorView(); DECLARE_DYNCREATE(CEmulatorView) // Ư¼º public: CEmulatorDoc* GetDocument() const; // ÀÛ¾÷ public: // ÀçÁ¤ÀÇ public: virtual void OnDraw(CDC* pDC); // ÀÌ ºä¸¦ ±×¸®±â À§ÇØ ÀçÁ¤ÀǵǾú½À´Ï´Ù. virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); // ±¸Çö public: virtual ~CEmulatorView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // ¸Þ½ÃÁö ¸Ê ÇÔ¼ö¸¦ »ý¼ºÇß½À´Ï´Ù. protected: DECLARE_MESSAGE_MAP() public: virtual void OnInitialUpdate(); protected: virtual void PostNcDestroy(); public: afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); protected: virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); public: afx_msg void OnAppPlay(); afx_msg void OnAppPlayGm(); }; #ifndef _DEBUG // EmulatorView.cppÀÇ µð¹ö±× ¹öÀü inline CEmulatorDoc* CEmulatorView::GetDocument() const { return reinterpret_cast(m_pDocument); } #endif