⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aotest1view.h

📁 编译需要安装desktop或者Arcgis Engine.利用arcgis的ArcObjects(AO),实现加载地图
💻 H
字号:
// AoTest1View.h : interface of the CAoTest1View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_AOTEST1VIEW_H__2C33F1BE_4512_4E7B_8DD4_3D9E7B09E301__INCLUDED_)
#define AFX_AOTEST1VIEW_H__2C33F1BE_4512_4E7B_8DD4_3D9E7B09E301__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CAoTest1View : public CFormView
{
protected: // create from serialization only
	CAoTest1View();
	DECLARE_DYNCREATE(CAoTest1View)

public:
	//{{AFX_DATA(CAoTest1View)
	enum{ IDD = IDD_AOTEST1_FORM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	CAoTest1Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAoTest1View)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CAoTest1View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	IMapControl3Ptr m_ipMapControl;   // 地图控件
	esriARTool m_ARTool;              // 鼠标当前状态
// Generated message map functions
protected:
	//{{AFX_MSG(CAoTest1View)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMapArrow();
	afx_msg void OnZoomin();
	afx_msg void OnMapZoomout();
	afx_msg void OnMapPan();
	afx_msg void OnMapFullextent();
	afx_msg void OnOnMouseDownMapcontrol1(long button, long shift, long x, long y, double mapX, double mapY);
	afx_msg void OnUpdateMapArrow(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapFullextent(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapPan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapZoomout(CCmdUI* pCmdUI);
	afx_msg void OnUpdateZoomin(CCmdUI* pCmdUI);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in AoTest1View.cpp
inline CAoTest1Doc* CAoTest1View::GetDocument()
   { return (CAoTest1Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AOTEST1VIEW_H__2C33F1BE_4512_4E7B_8DD4_3D9E7B09E301__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -