geoexpertview.h

来自「VC+MapX实现简单功能以及地图指定经纬度图元显示功能」· C头文件 代码 · 共 104 行

H
104
字号
// GeoExpertView.h : interface of the CGeoExpertView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_GEOEXPERTVIEW_H__3456F63F_3DC9_493F_8817_DAA44E0779AE__INCLUDED_)
#define AFX_GEOEXPERTVIEW_H__3456F63F_3DC9_493F_8817_DAA44E0779AE__INCLUDED_

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

#include "MapX.h"
#include "InfoDlg.h"

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

// Attributes
public:
	CGeoExpertDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGeoExpertView)
	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:
	CInfoDlg* m_InfoDlg;
	void OnInfoToolUsed(short ToolNum, double X1, double Y1, double X2, double Y2, double Distance, BOOL Shift, BOOL Ctrl, BOOL *EnableDefault);
	CString m_strFilePath;
	virtual ~CGeoExpertView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
public:
	void OnToolTest() ;

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CGeoExpertView)
	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 OnMapToolArrow();
	afx_msg void OnMapToolZoomin();
	afx_msg void OnMapToolZoomout();
	afx_msg void OnMapToolPan();
	afx_msg void OnMapToolSelect();
	afx_msg void OnMapToolRectangleselect();
	afx_msg void OnMapToolRadiusselect();
	afx_msg void OnMapToolEntire();
	afx_msg void OnUpdateMapToolZoomin(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapToolZoomout(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapToolPan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapToolArrow(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapToolSelect(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapToolRectangleselect(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapToolRadiusselect(CCmdUI* pCmdUI);
	afx_msg void OnMapToolCenter();
	afx_msg void OnUpdateMapToolCenter(CCmdUI* pCmdUI);
	afx_msg void OnViewProjection();
	afx_msg void OnViewProperties();
	afx_msg void OnMapToolInfotool();
	afx_msg void OnMapToolPolygonselect();
	afx_msg void OnUpdateMapToolPolygonselect(CCmdUI* pCmdUI);
	afx_msg void OnViewLayercontrol();
	afx_msg void OnUpdateMapToolInfotool(CCmdUI* pCmdUI);
	afx_msg void OnViewTooltest();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	DECLARE_EVENTSINK_MAP()
};

#ifndef _DEBUG  // debug version in GeoExpertView.cpp
inline CGeoExpertDoc* CGeoExpertView::GetDocument()
   { return (CGeoExpertDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_GEOEXPERTVIEW_H__3456F63F_3DC9_493F_8817_DAA44E0779AE__INCLUDED_)

⌨️ 快捷键说明

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