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

📄 digitalmapview.h

📁 VC++开发广州市交通运输干线
💻 H
字号:
// DigitalMapView.h : interface of the CDigitalMapView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DIGITALMAPVIEW_H__E2DFE47F_5F03_4F66_9267_2B35A612D603__INCLUDED_)
#define AFX_DIGITALMAPVIEW_H__E2DFE47F_5F03_4F66_9267_2B35A612D603__INCLUDED_

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

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

// Attributes
public:
	CDigitalMapDoc* GetDocument();

// Operations
public:
	int m_nStaComeBk;
	int m_nStaZoomOut;
	int m_nStaZoomIn;
	int m_nStaRTZoom;
	int m_nStaPan;
	int m_nPTSlct;
	int m_nRTSlct;
	int m_nCISlct;			// 用于设置与之相关的按钮状态

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDigitalMapView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	int ISPTInPGon(int vcount,POINT Polygon[],POINT q);
	BOOL ISPTInPLine(CGeoPointXY *pGeoPTXY,int nPTNums,CGeoPointXY cGeoPTXY);
//	int  ;
	void ZoomPan();
	void ZoomInRect();
	void ZoomOut(double k,POINT mousepoint);
	void ZoomIn(double k,POINT mousepoint);
	void GetRoundRect(CGeoRect &RoundRect);
	void SetRoundRect(CGeoRect RoundRect);
	virtual ~CDigitalMapView();
    void OnMouseMove(CGeoPointXY pointxy);
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	CGeoRect m_RoundRect;		//屏幕上的大地坐标
	int m_nCurStatus;	//鼠标状态
	//拉框放大和漫游时矩形范围
	RECT m_rtZoom;
	BOOL m_bLButtDown;

	//{{AFX_MSG(CDigitalMapView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnZoomIn();
	afx_msg void OnZoomOut();
	afx_msg void OnPan();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnComeBack();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnUpdateZoomIn(CCmdUI* pCmdUI);
	afx_msg void OnUpdateZoomOut(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateComeBack(CCmdUI* pCmdUI);
	afx_msg void OnPointSelect();
	afx_msg void OnUpdatePointSelect(CCmdUI* pCmdUI);
	afx_msg void OnRectSelect();
	afx_msg void OnUpdateRectSelect(CCmdUI* pCmdUI);
	afx_msg void OnCircleSelect();
	afx_msg void OnUpdateCircleSelect(CCmdUI* pCmdUI);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnRtZoom();
	afx_msg void OnUpdateRtZoom(CCmdUI* pCmdUI);
	afx_msg void OnDataComp();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnRefresh();
	afx_msg void OnFileSave();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in DigitalMapView.cpp
inline CDigitalMapDoc* CDigitalMapView::GetDocument()
   { return (CDigitalMapDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DIGITALMAPVIEW_H__E2DFE47F_5F03_4F66_9267_2B35A612D603__INCLUDED_)

⌨️ 快捷键说明

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