www.pudn.com > Grass.rar > GrassView.h


// GrassView.h : interface of the CGrassView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_GRASSVIEW_H__F241D82F_B398_11D5_A703_0080C8D7131C__INCLUDED_) 
#define AFX_GRASSVIEW_H__F241D82F_B398_11D5_A703_0080C8D7131C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CFGrass; 
class CGrassView : public CView 
{ 
protected: // create from serialization only 
	CGrassView(); 
	DECLARE_DYNCREATE(CGrassView) 
 
// Attributes 
public: 
	CGrassDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CGrassView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CGrassView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CGrassView) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	int m_nMaxx,m_nMaxy; 
	char m_nCh; 
	CFGrass *m_pGrass; 
}; 
 
#ifndef _DEBUG  // debug version in GrassView.cpp 
inline CGrassDoc* CGrassView::GetDocument() 
   { return (CGrassDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_GRASSVIEW_H__F241D82F_B398_11D5_A703_0080C8D7131C__INCLUDED_)