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

📄 mapgisview.h

📁 利用MapX开发应用型GIS源代码 VC++
💻 H
字号:
// MapGisView.h : interface of the CMapGisView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAPGISVIEW_H__24590930_9258_45F7_9AFA_27552B7914BB__INCLUDED_)
#define AFX_MAPGISVIEW_H__24590930_9258_45F7_9AFA_27552B7914BB__INCLUDED_

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

#include "MapX.h"

class CMapGisView : public CView
{
protected: // create from serialization only
	CMapGisView();
	DECLARE_DYNCREATE(CMapGisView)

// Attributes
public:
	CMapGisDoc* GetDocument();

// Operations
public:
	CMapX	m_ctrlMapX;  //MapX控件对象
	BOOL	m_bMapData;  //装入地图标记 

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMapGisView)
	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:
	virtual ~CMapGisView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMapGisView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnFileOpen();
	afx_msg void OnMapToolDistance();
	afx_msg void OnMapToolPan();
	afx_msg void OnMapToolRadiusselect();
	afx_msg void OnMapToolZoomin();
	afx_msg void OnMapToolZoomout();
	afx_msg void OnViewLayercontrol();
	afx_msg void OnMapToolRectangleselect();
	afx_msg void OnMapToolSelect();
	afx_msg void OnUpdateMapToolZoomin(CCmdUI* pCmdUI);
	//}}AFX_MSG
	void OnPolyToolUsedMap(short ToolNum, long Flags, LPDISPATCH Points, BOOL bShift, BOOL bCtrl, BOOL FAR* EnableDefault);

	DECLARE_MESSAGE_MAP()
	DECLARE_EVENTSINK_MAP()  //MapX事件处理

};

#ifndef _DEBUG  // debug version in MapGisView.cpp
inline CMapGisDoc* CMapGisView::GetDocument()
   { return (CMapGisDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MAPGISVIEW_H__24590930_9258_45F7_9AFA_27552B7914BB__INCLUDED_)

⌨️ 快捷键说明

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