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

📄 mapxsampleview.h

📁 用第三方控键完成的GIS二次开发功能程序
💻 H
字号:
// MapxSampleView.h : interface of the CMapxSampleView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAPXSAMPLEVIEW_H__213D7277_A780_4624_B2EB_F98208002A76__INCLUDED_)
#define AFX_MAPXSAMPLEVIEW_H__213D7277_A780_4624_B2EB_F98208002A76__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MapX.h"
#include "DIAL.h"

#define MYTOOL_SYMOBL  100

class CMapxSampleView : public CView
{
protected: // create from serialization only
    
	CMapX  m_ctrlMapX;	
	CDC*   m_pdcMemory;
	CBitmap* m_pBitmap;
	CSize  m_sizeSoure,m_sizeDest;
	CMapxSampleView();
	DECLARE_DYNCREATE(CMapxSampleView)
    
// Attributes
public:
	CMapxSampleDoc* GetDocument();
    double m_dNowMouseX;
	double m_dNowMouseY;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMapxSampleView)
	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:

	DIAL dial;
	virtual ~CMapxSampleView();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:

	//{{AFX_MSG(CMapxSampleView)
	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 OnMapToolArrow();
	afx_msg void OnUpdateMapToolArrow(CCmdUI* pCmdUI);
	afx_msg void OnMapToolCenter();
	afx_msg void OnUpdateMapToolCenter(CCmdUI* pCmdUI);
	afx_msg void OnMapToolPan();
	afx_msg void OnUpdateMapToolPan(CCmdUI* pCmdUI);
	afx_msg void OnMapToolZoomin();
	afx_msg void OnUpdateMapToolZoomin(CCmdUI* pCmdUI);
	afx_msg void OnMapToolZoomout();
	afx_msg void OnUpdateMapToolZoomout(CCmdUI* pCmdUI);
	afx_msg void OnViewLayercontrol();
	afx_msg void OnViewProperties();
	afx_msg void OnTest();
	afx_msg void OnFileOpen();
	afx_msg void OnDelete();
	afx_msg void OnAlarm();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnMapToolLabel();
	afx_msg void OnUpdateMapToolLabel(CCmdUI* pCmdUI);
	afx_msg void OnInfoTool();
	afx_msg void OnUpdateInfoTool(CCmdUI* pCmdUI);
	afx_msg void OnExam();
	//}}AFX_MSG
	void OnMouseUp_Map(short Button, short Shift, long X, long Y);
//	void OnMouseMoveInMap(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
 	void OnMouseDown_Map(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
 	void OnMouseDblC();	
	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()
};

#ifndef _DEBUG  // debug version in MapxSampleView.cpp
inline CMapxSampleDoc* CMapxSampleView::GetDocument()
   { return (CMapxSampleDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MAPXSAMPLEVIEW_H__213D7277_A780_4624_B2EB_F98208002A76__INCLUDED_)

⌨️ 快捷键说明

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