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

📄 singledocumentview.h

📁 SuperMap中VC开发环境下投影转换示范源码
💻 H
字号:
// SingleDocumentView.h : interface of the CSingleDocumentView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SINGLEDOCUMENTVIEW_H__6DE5ACA6_9EE3_4AF8_82B3_FC4D0BA0D5A4__INCLUDED_)
#define AFX_SINGLEDOCUMENTVIEW_H__6DE5ACA6_9EE3_4AF8_82B3_FC4D0BA0D5A4__INCLUDED_

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

#include "SingleDocumentDoc.h"

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

// Attributes
public:
	CSingleDocumentDoc* GetDocument();

// Operations
public:
	CString m_strDatasourceAlias;//记录显示在地图窗口的数据集所在的数据源的别名
	CSuperMap m_SuperMap;//地图窗口
	CToolTipCtrl	m_tt;
	CString			strJWD;
	void ChangeTY2JWD(double dx,double dy);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSingleDocumentView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSingleDocumentView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	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 OnMouseMoveSupermapctrl1(short Button, short Shift, long x, long y);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SingleDocumentView.cpp
inline CSingleDocumentDoc* CSingleDocumentView::GetDocument()
   { return (CSingleDocumentDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SINGLEDOCUMENTVIEW_H__6DE5ACA6_9EE3_4AF8_82B3_FC4D0BA0D5A4__INCLUDED_)

⌨️ 快捷键说明

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