www.pudn.com > 2_1.zip > 2_1View.h, change:2001-10-26,size:2318b


// 2_1View.h : interface of the CMy2_1View class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_2_1VIEW_H__AFAA7E4D_C6EE_11D5_B2C4_5254AB2BD63E__INCLUDED_) 
#define AFX_2_1VIEW_H__AFAA7E4D_C6EE_11D5_B2C4_5254AB2BD63E__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class Lei 
{ 
public: 
	int weitu; 
	int shumu; 
}; 
class CMy2_1View : public CView 
{ 
protected: // create from serialization only 
	CMy2_1View(); 
	DECLARE_DYNCREATE(CMy2_1View) 
 
// Attributes 
public: 
	CMy2_1Doc* GetDocument(); 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMy2_1View) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	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); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	int leftnum;//剩下雷数 
	int leinum;//雷数	 
	int jieshu;//结束	 
	short second;//计时 
	int secondstart;//开始计时 
	CBitmap m_Bitmap[12]; 
	CBitmap m_anniu[4]; 
	int m_RowCount;//行 
	int m_ColCount;//列 
	Lei lei[50][50];//最大雷区 
	virtual ~CMy2_1View(); 
	void leizero(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMy2_1View) 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnStart(); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in 2_1View.cpp 
inline CMy2_1Doc* CMy2_1View::GetDocument() 
   { return (CMy2_1Doc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_2_1VIEW_H__AFAA7E4D_C6EE_11D5_B2C4_5254AB2BD63E__INCLUDED_)