www.pudn.com > MyeSuperMap.rar > MyeSuperMapView.h


// MyeSuperMapView.h : interface of the CMyeSuperMapView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MYESUPERMAPVIEW_H__C955918B_FE96_413B_BB14_FE7D3EAB621E__INCLUDED_) 
#define AFX_MYESUPERMAPVIEW_H__C955918B_FE96_413B_BB14_FE7D3EAB621E__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
class CMyeSuperMapView : public CView 
{ 
protected: // create from serialization only 
	CMyeSuperMapView(); 
	DECLARE_DYNCREATE(CMyeSuperMapView) 
 
// Attributes 
public: 
	CMyeSuperMapDoc* GetDocument(); 
 
// Operations 
public: 
	//定义所需的变量 
	CSeMapWnd  m_MapWnd;	//用以地图显示 
	bool       m_bFileOpened;//记录地图是否已经打开 
	CString m_strEditableLayer;//记录可编辑图层名 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMyeSuperMapView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	//}}AFX_VIRTUAL 
 
// Implementation 
public://GPS接受及显示相关定义开始 
	int m_TowerNumber; 
	CString m_LineNumber; 
	CString m_PersonNumber; 
	 
	void DrawGPSonMap( CDC *pDC );////简单绘制一个"红色方块"来表现。 
 
	bool m_bShowGPSonMap;////是否在地图的相应位置上显示GPS点 
 
	CPoint m_pntGPS;////GPS定位数据 
 
	CSeGPSSatelliteData m_GPSSatData[12];//GPS卫星数据, 包括方位角、高度角、卫星编号、信号强度 
 
	CSeGPSData m_GPSData;//GPS数据, 包括经纬度、速度、方向等信息 
	 
	CSeGPS m_GPSReceiver;//GPS接收器 
 
	bool m_bGPSOpened;//GPS是否打开 
	//GPS接受及显示相关定义结束 
	virtual ~CMyeSuperMapView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMyeSuperMapView) 
	afx_msg void OnFileOpen(); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnFileClose(); 
	afx_msg void OnMapZoomin(); 
	afx_msg void OnMapRefresh(); 
	afx_msg void OnMapZoomout(); 
	afx_msg void OnNextPane(); 
	afx_msg void OnMapPan(); 
	afx_msg void OnMapViewentire(); 
	afx_msg void OnEditAddpoint(); 
	afx_msg void OnGpsOpen(); 
	afx_msg void OnGpsClose(); 
	afx_msg void OnGpsShowOnMap(); 
	afx_msg void OnUpdateGpsShowOnMap(CCmdUI* pCmdUI); 
	afx_msg void OnGpsShowData(); 
	afx_msg void OnUpdateEditAddpoint(CCmdUI* pCmdUI); 
	afx_msg void OnWritetofile(); 
	afx_msg void OnAddTower(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in MyeSuperMapView.cpp 
inline CMyeSuperMapDoc* CMyeSuperMapView::GetDocument() 
   { return (CMyeSuperMapDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYESUPERMAPVIEW_H__C955918B_FE96_413B_BB14_FE7D3EAB621E__INCLUDED_)