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

📄 gpsview.h

📁 实现GPS定位的常用算法
💻 H
字号:
// gpsView.h : interface of the CGpsView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_GPSVIEW_H__C7DE7BC2_C2A4_494E_B9C8_0DF8A206F034__INCLUDED_)
#define AFX_GPSVIEW_H__C7DE7BC2_C2A4_494E_B9C8_0DF8A206F034__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif

#include "scapi.h"

#define GPSTimer 1
#define GPS_INTERVAL 3000 //3 seconds
////////////
#define CURSOR_ME_CX  13
#define CURSOR_ME_CY  13
#define INIT_HOLES 18
#define SMGUI_MASKCOLOR     0x800080
#define HAN_WANG_CENTER_LON 11629377
#define HAN_WANG_CENTER_LAT 4004259
#define HAN_WANG_CENTER_LONGITUDE 116396334
#define HAN_WANG_CENTER_LATITUDE 39895518
#define ME_ICON_PATH L"\\Storage Card\\GolfMate\\Me2Cursor.bmp"
#define APP_DIR L"\\Storage Card\\GolfMate\\"
#define WORK_DIR L"\\Storage Card\\GolfMate\\"
#define MAP_DIR L"\\Storage Card\\GolfMate\\DB\\Maps\\"
#define GEODATA_DIR "\\Storage Card\\GolfMate\\DB\\Golfdata\\"
////////////


class CGpsView : public CView, ScApObserver
{
protected: // create from serialization only
	CGpsView();
	DECLARE_DYNCREATE(CGpsView)

// Attributes
public:
	UINT m_nGpsTimer;
	ScInt gs_m_ScaleValue;
	int m_GpsStatus;
	CGpsDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGpsView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CGpsView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CGpsView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in gpsView.cpp
inline CGpsDoc* CGpsView::GetDocument()
   { return (CGpsDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_GPSVIEW_H__C7DE7BC2_C2A4_494E_B9C8_0DF8A206F034__INCLUDED_)

⌨️ 快捷键说明

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