mergenewView.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:2k
源码类别:

游戏

开发平台:

Visual C++

  1. // mergenewView.h : interface of the CMergenewView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MERGENEWVIEW_H__1413D7EC_1C04_11D6_A92C_99DC52C52B48__INCLUDED_)
  5. #define AFX_MERGENEWVIEW_H__1413D7EC_1C04_11D6_A92C_99DC52C52B48__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CMergenewView : public CView
  10. {
  11. protected: // create from serialization only
  12. CMergenewView();
  13. DECLARE_DYNCREATE(CMergenewView)
  14. // Attributes
  15. public:
  16. int width;
  17. CMergenewDoc* GetDocument();
  18. void DrawResult(CDC *pDC);
  19. void DrawMerge(CDC *pDC);
  20. void DrawColorBlocks(CDC * pDC,CRect &rect);
  21. void DrawWhiteBlocks(CDC * pDC,CRect &rect);
  22. void DrawColorBlocks(CDC * pDC,CRect &rect,int r,int g,int b);
  23. void DrawDoubleResult(CDC * pDC);
  24. CPoint point;
  25. bool showtag;
  26. bool resulttag;
  27. bool doubleresult;
  28. bool turn;
  29. long count;
  30. void DrawColorBlocks(CDC * pDC,CPoint point);
  31. void DrawWhiteBlocks(CDC * pDC,CPoint point);
  32. void DrawColorBlocks(CDC * pDC,CPoint point,int r,int g,int b);
  33. // Operations
  34. public:
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CMergenewView)
  38. public:
  39. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  40. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  41. protected:
  42. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  43. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  44. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. public:
  48. virtual ~CMergenewView();
  49. #ifdef _DEBUG
  50. virtual void AssertValid() const;
  51. virtual void Dump(CDumpContext& dc) const;
  52. #endif
  53. protected:
  54. // Generated message map functions
  55. protected:
  56. //{{AFX_MSG(CMergenewView)
  57. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  58. afx_msg void OnNewgame();
  59. afx_msg void OnResult();
  60. afx_msg void OnDoubleresult();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. #ifndef _DEBUG  // debug version in mergenewView.cpp
  65. inline CMergenewDoc* CMergenewView::GetDocument()
  66.    { return (CMergenewDoc*)m_pDocument; }
  67. #endif
  68. /////////////////////////////////////////////////////////////////////////////
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_MERGENEWVIEW_H__1413D7EC_1C04_11D6_A92C_99DC52C52B48__INCLUDED_)