gps_famdlg.h

来自「EVC下」· C头文件 代码 · 共 117 行

H
117
字号
// GPS_FAMDlg.h : header file
//

#if !defined(AFX_GPS_FAMDLG_H__41A38F8D_7D24_4C58_A4A6_98D597A6FA39__INCLUDED_)
#define AFX_GPS_FAMDLG_H__41A38F8D_7D24_4C58_A4A6_98D597A6FA39__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

/////////////////////////////////////////////////////////////////////////////
// CGPS_FAMDlg dialog

class CGPS_FAMDlg : public CDialog
{
// Construction
public:
	CGPS_FAMDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CGPS_FAMDlg)
	enum { IDD = IDD_GPS_FAM_DIALOG };
	CStatic	m_Button_BKGND_1;
	CStatic	m_Button_BKGND;
	CBitmapButton	m_Bt_Sub;
	CBitmapButton	m_Bt_Add;
	CBitmapButton	m_Bt_Re_Measure;
	CBitmapButton	m_Bt_Girth;
	CBitmapButton	m_Bt_Display;
	CBitmapButton	m_Bt_Area;
	CBitmapButton	m_Bt_Restart;
	CBitmapButton	m_Bt_Stop;
	CBitmapButton	m_Bt_Manual_Start;
	CBitmapButton	m_Bt_Auto_Start;
	CBitmapButton	m_Bt_Auto_Mode;
	CBitmapButton	m_Bt_Manual_Mode;
	CBitmapButton	m_Exit;
	CString	m_Info_3;
	CString	m_Info_2;
	CString	m_Info_1;
	CString	m_Info_4;
	CString	m_PointNum;
	CString	m_text;
	CString	m_Area;
	CString	m_Girth;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGPS_FAMDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
public:
	BOOL OnOpenCom();
	double CStringToFloat(CString str2);
	int CStringToInt(CString str1);
public:
	void DisplayPolygon(CDC &pDC);
	void GetGPSinfo();
	HANDLE hCom;
	HANDLE hFileManual;
	HANDLE hFileAuto;
	CBitmap m_BackScreenBitmap;
	HBRUSH m_brMine;
	CString SetTime[2][7];
	CString space_time;
	DWORD BytesRead;
	CPoint *ptr3;
	int PointCountDisplay;
	bool begin;
	int count;
	int state; //GetGPSinfo
	int t; //间隔时间
	int i; //BT_ADD,BT_SUB
// Implementation
public:
	CString s1,s2,s3,s4,s5,s6,s7,s8;
	CHAR *strInfo;
	BOOL bReadStat;
	DWORD   readLen; 
	CString str_GpsInfo;  //读出的GPS信息(以$GPGGA 开头的)
	CString hour,minute,second;
	int stdhour;
	int	SateNum;

protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CGPS_FAMDlg)
	virtual BOOL OnInitDialog();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnExit();
	afx_msg void OnAutoMode();
	afx_msg void OnManualMode();
	afx_msg void OnAutoStart();
	afx_msg void OnManualStart();
	afx_msg void OnStop();
	afx_msg void OnRestart();
	afx_msg void OnArea();
	afx_msg void OnGirth();
	afx_msg void OnDisplay();
	afx_msg void OnReMeasure();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnAdd();
	afx_msg void OnSub();
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_GPS_FAMDLG_H__41A38F8D_7D24_4C58_A4A6_98D597A6FA39__INCLUDED_)

⌨️ 快捷键说明

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