www.pudn.com > easygis.rar > EasyGisView.h


// EasyGisView.h : interface of the CEasyGisView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_EASYGISVIEW_H__F4E8D3B7_B590_43EA_BF13_CB31CC3631D2__INCLUDED_) 
#define AFX_EASYGISVIEW_H__F4E8D3B7_B590_43EA_BF13_CB31CC3631D2__INCLUDED_ 
 
#include "EasyGisDoc.h" 
#include "EG_DataStruct.h"	// Added by ClassView 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CEasyGisView : public CView 
{ 
protected: // create from serialization only 
	CEasyGisView(); 
	DECLARE_DYNCREATE(CEasyGisView) 
 
// Attributes 
public: 
	CEasyGisDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CEasyGisView) 
	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: 
	 
	void MakeAllFalse(); 
	double m_MinY; 
	double m_MinX; 
	double m_MaxY; 
	double m_MaxX; 
	 
	virtual ~CEasyGisView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CEasyGisView) 
	afx_msg void OnZoomarea(); 
	afx_msg void OnZoomequal(); 
	afx_msg void OnZoomin(); 
	afx_msg void OnZoommoveon(); 
	afx_msg void OnZoomon(); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt); 
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 
	afx_msg void OnUpdateZoommoveon(CCmdUI* pCmdUI); 
	afx_msg void OnMoveremove(); 
	afx_msg void OnUpdateMoveremove(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateZoomarea(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
 
protected: 
	bool b_remove; 
	bool b_DrawQuerryRegion;       //画查询的面 
	bool b_QuerryRegion; 
	bool b_QuerryLine; 
    int m_cur_shape; 
	POINT m_down;       //鼠标左键按下的坐标 
	POINT m_up;         //鼠标左键松开的坐标。 
    POINT m_off;        //漫游偏移量。 
	bool b_areazoom;    //区域放大开关 
	bool b_moveon;      //漫游开关 
	bool b_down;        //左键按下 
	CRect	m_rect;     //选定区域放大 
	CRect winRect;      //屏幕区域 
    EGS_RECT ClientRect; 
	double m_fangdaxishu; 
	double m_ZoomValue; 
	double m_fangdaxishuX; 
	double m_fangdaxishuY; 
	double winheight; 
	double winwidth; 
	double offset; 
	double offsetY; 
	double offsetX; 
	 
 
}; 
#ifndef _DEBUG  // debug version in EasyGisView.cpp 
inline CEasyGisDoc* CEasyGisView::GetDocument() 
   { return (CEasyGisDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_EASYGISVIEW_H__F4E8D3B7_B590_43EA_BF13_CB31CC3631D2__INCLUDED_)