www.pudn.com > Geotest.rar > GeotestView.h


// GeotestView.h : interface of the CGeotestView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_GEOTESTVIEW_H__D80DF5CF_01AC_4EBE_BE24_12A9C58EA7FD__INCLUDED_) 
#define AFX_GEOTESTVIEW_H__D80DF5CF_01AC_4EBE_BE24_12A9C58EA7FD__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "MAPX.h" 
#include "SetDlg.h" 
#define CUSTOM_LINE_TOOL      23 
#define CUSTOM_ELLIPSE_TOOL   24 
#define CUSTOM_POLYGON_TOOL   25 
#define CUSTOM_RECT_TOOL      26 
#define CUSTOM_ARC_TOOL       27 
#define CUSTOM_DISTANCE_TOOL  28 
#define CUSTOM_POLYLINE_TOOL  29 
#define CUSTOM_INFO_TOOL      30 
class CGeotestView : public CView 
{ 
protected: // create from serialization only 
	CGeotestView(); 
	DECLARE_DYNCREATE(CGeotestView) 
 
// Attributes 
public: 
	CGeotestDoc* GetDocument();  
	//创建CMapX对象 
	CMapX  m_ctrlMapX; 
	 
	//创建鹰眼对象 
	//CMapX m_eagleMapX; 
	 
	CString m_strFilePath; 
	LRESULT lrsult; 
	CBitmap bm_open1; 
	CBitmap bm_open2; 
	CBitmap bm_open3; 
	CBitmap bm_open4; 
 
	CString m_strEditLayer; //动态编辑的图层的名字 
     
 
// Operations 
public: 
	 
	 
	LRESULT SendMessage( 
		HWND hwnd, 
		UINT msg, 
		WPARAM wparam, 
        LPARAM lparam); 
//	void OnMapAdddata(); 
	 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CGeotestView) 
	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 OnMapViewChanged(); 
	BOOL OnMouseUpInMap(short Button,short Shift,OLE_XPOS_PIXELS x,OLE_YPOS_PIXELS y); 
 
public: 
	virtual ~CGeotestView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CGeotestView) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnSetFocus(CWnd* pOldWnd); 
	afx_msg void OnFileOpen(); 
	afx_msg void OnMapToolZoomin(); 
	afx_msg void OnMapToolZoomout(); 
	afx_msg void OnMapToolArrow(); 
	afx_msg void OnMapToolSelect(); 
	afx_msg void OnMapToolPolygonselect(); 
	afx_msg void OnMapToolCenter(); 
	afx_msg void OnMapToolPan(); 
	afx_msg void OnMapToolRadiusselect(); 
	afx_msg void OnMapToolRectangleselect(); 
	afx_msg void OnMapToolEntire(); 
	afx_msg void OnMapToolInfotool(); 
	afx_msg void OnMapToolDistance(); 
	afx_msg void OnMapToolLayercontrol(); 
	afx_msg void OnViewGeoname(); 
	afx_msg void OnViewPropert(); 
	afx_msg void OnViewProjiects(); 
	afx_msg void OnToolCreateline(); 
	afx_msg void OnToolCreatetext(); 
	afx_msg void OnToolChooseeditlayer(); 
	afx_msg void OnToolCreatearc(); 
	afx_msg void OnToolCreateellipse(); 
	afx_msg void OnToolCreateplygon(); 
	afx_msg void OnToolCreateregion(); 
	afx_msg void OnToolCreaterect(); 
	afx_msg void OnToolCreatesymbol(); 
	afx_msg void OnToolUsed(short ToolNum, double X1, double Y1, double X2, double Y2, double Distance, BOOL Shift, BOOL Ctrl, BOOL* EnableDefault); 
	afx_msg void OnDataset1(); 
	afx_msg void OnViewTree(); 
	afx_msg void OnToolSet(); 
	afx_msg void OnAutolabel(); 
	afx_msg void OnPolyToolUsed(short ToolNum, long Flags, LPDISPATCH Points,BOOL bShift,BOOL bCtrl,BOOL FAR* EnableDefault); 
	afx_msg void OnMapToolSearch(); 
	afx_msg void OnThemes(); 
	afx_msg void OnThemeModifyRequested(LPDISPATCH ThemeDispatch); 
	afx_msg void OnToolCustomLayercontrol(); 
	afx_msg void OnEagleview(); 
	afx_msg void OnQueryFind(); 
	afx_msg void OnQuerySelect(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
	 
	DECLARE_EVENTSINK_MAP () 
	 
}; 
 
#ifndef _DEBUG  // debug version in GeotestView.cpp 
inline CGeotestDoc* CGeotestView::GetDocument() 
   { return (CGeotestDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_GEOTESTVIEW_H__D80DF5CF_01AC_4EBE_BE24_12A9C58EA7FD__INCLUDED_)