www.pudn.com > Map_OpenGL.rar > Map_2DView.h


#if !defined(AFX_MAP_2DVIEW_H__D6B0AD57_CC23_44C2_8115_9D447386F4FE__INCLUDED_) 
#define AFX_MAP_2DVIEW_H__D6B0AD57_CC23_44C2_8115_9D447386F4FE__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// Map_2DView.h : header file 
// 
#include "Map_OpenGLDoc.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CMap_2DView view 
 
class CMap_2DView : public CView 
{ 
protected: 
	CMap_2DView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CMap_2DView) 
 
// Attributes 
public: 
	CMap_OpenGLDoc* GetDocument(); 
 
	//用来设置内存视图 
	CDC* m_mpDC; 
	CBitmap* m_bitmap; 
	CRect m_maprc; 
 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMap_2DView) 
	protected: 
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~CMap_2DView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CMap_2DView) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
inline CMap_OpenGLDoc* CMap_2DView::GetDocument() 
{ 
	return (CMap_OpenGLDoc*)m_pDocument; 
} 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAP_2DVIEW_H__D6B0AD57_CC23_44C2_8115_9D447386F4FE__INCLUDED_)