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

📄 hpmapxdlg.h

📁 一个mapxmobile+gps的小程序,需要先安装mapx mobile
💻 H
字号:
// HPMapxDlg.h

#ifndef _HPMAPXDLG_H__
#define _HPMAPXDLG_H__

#pragma once

#include "MapInfo/mapx.h"
#include "MapInfo/gpsset.h"

#include "Classes/CeBtnST.h"
#include "Classes/HPMessageBox.h"
#include "comm/bluetoothgps.h"

class CHPMapxDlg : public CDialog
{

public:
	CHPMapxDlg(CWnd* pParent = NULL);
	
	//{{AFX_DATA(CHPMapxDlg)
	enum { IDD = IDD_HPMAPX_DIALOG };
	//}}AFX_DATA

	//{{AFX_VIRTUAL(CHPMapxDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	//}}AFX_VIRTUAL

protected:

	HICON	m_hIcon;
	
	//{{AFX_MSG(CHPMapxDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);

	afx_msg void OnViewLayercontrol()	{m_GpsMap.OnLayercontrol();	}
	afx_msg void OnToolSelectpoint()	{m_GpsMap.OnSelectpoint();	}
	afx_msg void OnToolRectselect()		{m_GpsMap.OnRectselect();	}
	afx_msg void OnToolZoomin()		{m_GpsMap.OnZoomin();		}
	afx_msg void OnToolZoomout()		{m_GpsMap.OnZoomout();		}
	afx_msg void OnToolPan()		{m_GpsMap.OnPan();		}
	afx_msg void OnMapToolCenter()		{m_GpsMap.OnCenter();		}
	afx_msg void OnMapxDistance()		{m_GpsMap.OnDistance();		}
	afx_msg void OnMapEntire()		{m_GpsMap.OnEntire();		}
	afx_msg void OnMapxInfo()		{m_GpsMap.OnInfo();		}
	afx_msg void OnShow()			{m_MsgWindow.ShowWindowEx();	}
	afx_msg void OnHide()			{m_MsgWindow.HideWindowEx();	}

	//}}AFX_MSG

	afx_msg LRESULT OnReposition		(WPARAM wparam, LPARAM lparama);
	afx_msg LRESULT OnRealTimeMessage	(WPARAM wparam, LPARAM lparama);
	DECLARE_MESSAGE_MAP()

private:

	CBlueToothGPS	m_GpsMsg;
	CGpsSet		m_GpsMap;
	CHPMessageBox	m_MsgWindow;
	

private:
	void	OnSetFullScreen();
	void	AddMenu();
	void	AddMessage(LPCTSTR str);
	bool	LoadMapx();
	bool	OpenGPS();
};
//{{AFX_INSERT_LOCATION}}
#endif

⌨️ 快捷键说明

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