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

📄 mapxsingleview.h

📁 MapX的基本应用
💻 H
字号:
// MapXSingleView.h : interface of the CMapXSingleView class
//
/////////////////////////////////////////////////////////////////////////////

#include "DlgFind.h"
#include "DlgLayers.h"

#if !defined(AFX_MAPXSINGLEVIEW_H__D92E0B4D_744E_4F64_89EC_7DE154C5B9D2__INCLUDED_)
#define AFX_MAPXSINGLEVIEW_H__D92E0B4D_744E_4F64_89EC_7DE154C5B9D2__INCLUDED_

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


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

// Attributes
public:
	CMapXSingleDoc* GetDocument();

	CString m_strFind;
	CDlgLayers m_Dlg;
// Operations
public:

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

protected:

// Generated message map functions
protected:
	CMapX m_mx;//mapx对象
	//{{AFX_MSG(CMapXSingleView)
	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 OnDestroy();
	afx_msg void OnScanLayer();
	afx_msg void OnToolSpot();
	afx_msg void OnCreateFeature();
	afx_msg void OnDeleteFeature();
	afx_msg void OnFindFeature();
	afx_msg void OnToolPan();
	afx_msg void OnToolZoomIn();
	afx_msg void OnToolZoomOut();
	//}}AFX_MSG

	//使用图元工具,激发的消息处理函数
	void OnToolUsed(short ToolNum, double X1, double Y1, double X2, double Y2, 
					double Distance, BOOL Shift, BOOL Ctrl, BOOL *EnableDefault);
	DECLARE_MESSAGE_MAP()
	DECLARE_EVENTSINK_MAP()//定义mapx的消息响应
};

#ifndef _DEBUG  // debug version in MapXSingleView.cpp
inline CMapXSingleDoc* CMapXSingleView::GetDocument()
   { return (CMapXSingleDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MAPXSINGLEVIEW_H__D92E0B4D_744E_4F64_89EC_7DE154C5B9D2__INCLUDED_)

⌨️ 快捷键说明

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