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

📄 public_tgisview.h

📁 公交查询系统源代码 是武汉的 提供简单的查询和乘车方案 vc++
💻 H
字号:
// Public_TGISView.h : interface of the CPublic_TGISView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "map.h"
//}}AFX_INCLUDES
#include "resource.h"
#if !defined(AFX_PUBLIC_TGISVIEW_H__E45DFE0F_9102_4552_9D29_C97A996E3075__INCLUDED_)
#define AFX_PUBLIC_TGISVIEW_H__E45DFE0F_9102_4552_9D29_C97A996E3075__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "InfoDlg.h"
#include "NearestDlg.h"

class CPublic_TGISDoc;
#include "moline.h"	// Added by ClassView
class CPublic_TGISView : public CFormView
{
protected: // create from serialization only
	CPublic_TGISView();
	DECLARE_DYNCREATE(CPublic_TGISView)

public:
	//{{AFX_DATA(CPublic_TGISView)
	enum { IDD = IDD_PUBLIC_TGIS_FORM };
	CStatic	m_NameLabel;
	CMap1	m_map;
	//}}AFX_DATA

// Attributes
private:
	UINT    m_nTimer;       // 计时器
	double	m_x;			// 当前位置的x坐标
	double	m_y;			// 当前位置的y坐标
	double	m_lastX;		// 当计时开始时鼠标位置的x坐标
	double	m_lastY;		// 当计时开始时鼠标位置的y坐标
public:
	CPublic_TGISDoc* GetDocument();
    UINT m_nCurTool;
	CInfoDlg* m_pInfoDlg;
	CNearestDlg* m_pNearestDlg;
	static UINT sound( LPVOID pParam );
// Operations
public:
    void LoadLayers();
	void ReShowLayers();
	BOOL LoadFilter(CComboBox* pComboBox);
	BOOL LoadFilter2(CComboBox* pComboBox, CString szFilter, bool bLayerType);
	CMoRecordset DoSearch();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPublic_TGISView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	CMoLine NavagationLine;
	bool navigation;
	void LineNavigation();
	short ReCalcFontSize(short nSize,double dScale);
	void ReLabelLayers();
	virtual ~CPublic_TGISView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPublic_TGISView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnUpdateAllFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGovFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateShopFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateTourFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateSchoolFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateHospitalFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateHotelFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBankFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePostFtr(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBusStaFtr(CCmdUI* pCmdUI);
	afx_msg void OnShowAllFeature();
	afx_msg void OnShowShopFeature();
	afx_msg void OnShowTourFeature();
	afx_msg void OnShowSchoolFeature();
	afx_msg void OnShowHospitalFeature();
	afx_msg void OnShowHotelFeature();
	afx_msg void OnShowBankFeature();
	afx_msg void OnShowGovFeature();
	afx_msg void OnShowPostFeature();
	afx_msg void OnShowBusStationFeature();
	afx_msg void OnMapLinemearsure();
	afx_msg void OnZoomIn();
	afx_msg void OnZoomOut();
	afx_msg void OnFullExtent();
	afx_msg void OnPanMap();
	afx_msg void OnUpdateZoomIn(CCmdUI* pCmdUI);
	afx_msg void OnUpdateZoomOut(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePanMap(CCmdUI* pCmdUI);
	afx_msg void OnMouseDownMap1(short Button, short Shift, long X, long Y);
	afx_msg void OnMouseMoveMap1(short Button, short Shift, long X, long Y);
	afx_msg void OnAfterLayerDrawMap1(short index, BOOL canceled, long hDC);
	afx_msg void OnPointSelect();
	afx_msg void OnRectSelect();
	afx_msg void OnPolySelect();
	afx_msg void OnUpdatePointSel(CCmdUI* pCmdUI);
	afx_msg void OnUpdateRectSel(CCmdUI* pCmdUI);	
	afx_msg void OnUpdatePolySel(CCmdUI* pCmdUI);
	afx_msg void OnMapInfo();
	afx_msg void OnUpdateMapInfo(CCmdUI* pCmdUI);
	afx_msg void OnNameQuery();
	afx_msg void OnNearestName();
	afx_msg void OnMapNameindex();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnUpdateMapLinemearsure(CCmdUI* pCmdUI);
	afx_msg void OnMapAreameasure();
	afx_msg void OnUpdateMapAreameasure(CCmdUI* pCmdUI);
	afx_msg void OnMapOutput();
	afx_msg void OnMapPrint();
	afx_msg void OnMapHelp();
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg void OnButton32805();
	afx_msg void OnButton32806();
	afx_msg void OnMapMusic();
	afx_msg void OnAfterTrackingLayerDrawMap1(long hDC);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Public_TGISView.cpp
inline CPublic_TGISDoc* CPublic_TGISView::GetDocument()
   { return (CPublic_TGISDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_PUBLIC_TGISVIEW_H__E45DFE0F_9102_4552_9D29_C97A996E3075__INCLUDED_)

⌨️ 快捷键说明

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