BoxMan_EditerView.cpp
上传用户:qiangti
上传日期:2022-04-06
资源大小:644k
文件大小:2k
源码类别:

其他智力游戏

开发平台:

Visual C++

  1. // BoxMan_EditerView.cpp : implementation of the CBoxMan_EditerView class
  2. //
  3. #include "stdafx.h"
  4. #include "BoxMan_Editer.h"
  5. #include "BoxMan_EditerDoc.h"
  6. #include "BoxMan_EditerView.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CBoxMan_EditerView
  14. IMPLEMENT_DYNCREATE(CBoxMan_EditerView, CView)
  15. BEGIN_MESSAGE_MAP(CBoxMan_EditerView, CView)
  16. //{{AFX_MSG_MAP(CBoxMan_EditerView)
  17. // NOTE - the ClassWizard will add and remove mapping macros here.
  18. //    DO NOT EDIT what you see in these blocks of generated code!
  19. //}}AFX_MSG_MAP
  20. END_MESSAGE_MAP()
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CBoxMan_EditerView construction/destruction
  23. CBoxMan_EditerView::CBoxMan_EditerView()
  24. {
  25. // TODO: add construction code here
  26. }
  27. CBoxMan_EditerView::~CBoxMan_EditerView()
  28. {
  29. }
  30. BOOL CBoxMan_EditerView::PreCreateWindow(CREATESTRUCT& cs)
  31. {
  32. // TODO: Modify the Window class or styles here by modifying
  33. //  the CREATESTRUCT cs
  34. return CView::PreCreateWindow(cs);
  35. }
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CBoxMan_EditerView drawing
  38. void CBoxMan_EditerView::OnDraw(CDC* pDC)
  39. {
  40. CBoxMan_EditerDoc* pDoc = GetDocument();
  41. ASSERT_VALID(pDoc);
  42. // TODO: add draw code for native data here
  43. }
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CBoxMan_EditerView diagnostics
  46. #ifdef _DEBUG
  47. void CBoxMan_EditerView::AssertValid() const
  48. {
  49. CView::AssertValid();
  50. }
  51. void CBoxMan_EditerView::Dump(CDumpContext& dc) const
  52. {
  53. CView::Dump(dc);
  54. }
  55. CBoxMan_EditerDoc* CBoxMan_EditerView::GetDocument() // non-debug version is inline
  56. {
  57. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CBoxMan_EditerDoc)));
  58. return (CBoxMan_EditerDoc*)m_pDocument;
  59. }
  60. #endif //_DEBUG
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CBoxMan_EditerView message handlers