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

📄 supermap exampleview.h

📁 基于SUPERMAP、VC++的二次开发
💻 H
字号:
// SuperMap ExampleView.h : interface of the CSuperMapExampleView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SUPERMAPEXAMPLEVIEW_H__2A227EDA_E9E0_4CD9_861B_6095EF3CAE45__INCLUDED_)
#define AFX_SUPERMAPEXAMPLEVIEW_H__2A227EDA_E9E0_4CD9_861B_6095EF3CAE45__INCLUDED_

#include "MyTopo.h"

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


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

// Attributes
public:
	CSuperMapExampleDoc* GetDocument();

// Operations
public:
	CString m_strDatasourceAlias;//记录显示在地图窗口的数据集所在的数据源的别名
	CSuperMap m_SuperMap;//地图窗口
	CMyTopo   m_MyTopoDlg;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSuperMapExampleView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	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 ~CSuperMapExampleView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSuperMapExampleView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg void OnMapSelect();
	afx_msg void OnMapZoomin();
	afx_msg void OnMapZoomout();
	afx_msg void OnMapZoomfree();
	afx_msg void OnMapPan();
	afx_msg void OnMapEntire();
	afx_msg void OnMapRefresh();
	afx_msg void OnDtAdd2map();
	afx_msg void OnDtSngopen();
	afx_msg void OnDtTopo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SuperMap ExampleView.cpp
inline CSuperMapExampleDoc* CSuperMapExampleView::GetDocument()
   { return (CSuperMapExampleDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SUPERMAPEXAMPLEVIEW_H__2A227EDA_E9E0_4CD9_861B_6095EF3CAE45__INCLUDED_)

⌨️ 快捷键说明

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