Untitled


SUBMITTED BY: Guest

DATE: Jan. 1, 2014, 1:37 a.m.

FORMAT: Text only

SIZE: 2.6 kB

HITS: 1031

  1. // EmulatorView.h : iCEmulatorView Ŭ·¡½ºÀÇ ÀÎÅÍÆäÀ̽º
  2. //
  3. #pragma once
  4. class CEmulatorView : public CView, public CD3DApplication
  5. {
  6. private:
  7. BOOL m_bCreated;
  8. CString m_strCharSetFile;
  9. CString m_strMapList;
  10. BOOL bGmRights;
  11. HCURSOR m_hCursorDefault;
  12. private:
  13. HRESULT ConfirmDevice( D3DCAPSQ*,DWORD,D3DFORMAT );
  14. HRESULT OneTimeSceneInit();
  15. HRESULT CreateObjects();
  16. HRESULT InitDeviceObjects();
  17. HRESULT RestoreDeviceObjects();
  18. HRESULT FrameMove();
  19. HRESULT Render();
  20. HRESULT InvalidateDeviceObjects();
  21. HRESULT DeleteDeviceObjects();
  22. HRESULT FinalCleanup();
  23. HRESULT RenderText();
  24. HRESULT ReSizeWindow ( int cx, int cy )
  25. {
  26. if ( cx < 10 ) cx = 10;
  27. if ( cy < 10 ) cy = 10;
  28. m_d3dpp.BackBufferWidth = cx;
  29. m_d3dpp.BackBufferHeight = cy;
  30. return Resize3DEnvironment();
  31. }
  32. public:
  33. void SetActive ( BOOL bActive );
  34. public:
  35. virtual HRESULT FrameMove3DEnvironment();
  36. virtual HRESULT Render3DEnvironment();
  37. protected: // serialization¿¡¼­¸¸ ¸¸µé¾îÁý´Ï´Ù.
  38. CEmulatorView();
  39. DECLARE_DYNCREATE(CEmulatorView)
  40. // Ư¼º
  41. public:
  42. CEmulatorDoc* GetDocument() const;
  43. // ÀÛ¾÷
  44. public:
  45. // ÀçÁ¤ÀÇ
  46. public:
  47. virtual void OnDraw(CDC* pDC); // ÀÌ ºä¸¦ ±×¸®±â À§ÇØ ÀçÁ¤ÀǵǾú½À´Ï´Ù.
  48. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  49. protected:
  50. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  51. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  52. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  53. // ±¸Çö
  54. public:
  55. virtual ~CEmulatorView();
  56. #ifdef _DEBUG
  57. virtual void AssertValid() const;
  58. virtual void Dump(CDumpContext& dc) const;
  59. #endif
  60. protected:
  61. // ¸Þ½ÃÁö ¸Ê ÇÔ¼ö¸¦ »ý¼ºÇß½À´Ï´Ù.
  62. protected:
  63. DECLARE_MESSAGE_MAP()
  64. public:
  65. virtual void OnInitialUpdate();
  66. protected:
  67. virtual void PostNcDestroy();
  68. public:
  69. afx_msg void OnSize(UINT nType, int cx, int cy);
  70. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  71. protected:
  72. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  73. public:
  74. afx_msg void OnAppPlay();
  75. afx_msg void OnAppPlayGm();
  76. };
  77. #ifndef _DEBUG // EmulatorView.cppÀÇ µð¹ö±× ¹öÀü
  78. inline CEmulatorDoc* CEmulatorView::GetDocument() const
  79. { return reinterpret_cast<CEmulatorDoc*>(m_pDocument); }
  80. #endif

comments powered by Disqus