www.pudn.com > HPMapx.rar > HPMapxDlg.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