📄 gmarkview.h
字号:
// gmarkView.h : interface of the CGmarkView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GMARKVIEW_H__F1838B1B_DD7C_4C53_B4EA_40AD1AB01A32__INCLUDED_)
#define AFX_GMARKVIEW_H__F1838B1B_DD7C_4C53_B4EA_40AD1AB01A32__INCLUDED_
#include "Gps.h" // Added by ClassView
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "winsock.h"
#include "Log.h" // Added by ClassView
#include "MyTabCtrl.h"
class CGmarkView : public CFormView
{
protected: // create from serialization only
CGmarkView();
DECLARE_DYNCREATE(CGmarkView)
public:
//{{AFX_DATA(CGmarkView)
enum { IDD = IDD_GMARK_FORM };
CMyTabCtrl m_tabMain;
//}}AFX_DATA
// Attributes
public:
CGmarkDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGmarkView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
public:
CMonitorDlg * m_dlgMonitor;
HANDLE m_hDialCompleteEvent;
SOCKET m_Socket;
CLog m_Log;
char m_RTCMBuf[GPS_MAX_RTCM+1];
BOOL m_bNeedActivate;
BOOL m_bCloseSocketFlg;
CGps m_Gps;
void CreateFilename( LPSTR filename, int type);
void GmarkMessageBox( const char *);
void WriteRTCM( char * RTCMBuf, int nBytes );
void OnGpsReceived(WPARAM w, LPARAM l);
void OnGpsUpdate(WPARAM w, LPARAM l);
virtual ~CGmarkView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CGmarkView)
afx_msg void OnButtonDial();
afx_msg void OnButtonHangup();
afx_msg LRESULT OnRasDialEvent(WPARAM wp, LPARAM lp);
afx_msg void OnButtonClose();
afx_msg void OnButtonInit();
afx_msg void OnButtonConnect();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButtonGgaoff();
afx_msg void OnButtonGga2s();
afx_msg void OnClose();
afx_msg void OnButtonTestmap();
afx_msg void OnButtonLogon();
afx_msg void OnButtonLogoff();
afx_msg void OnButtonRtcmon();
afx_msg void OnButtonRtcmoff();
afx_msg void OnButtonPbnon2();
afx_msg void OnButtonPbnoff();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
LRESULT AutoProcess(WPARAM w, LPARAM l);
COperateDlg * m_dlgOperate;
CSetupDlg * m_dlgSetup;
CAdvanceDlg * m_dlgAdvance;
// double m_OrigLat;
// double m_OrigLon;
void AddText2Edit( int idc, LPCTSTR text );
int getline(FILE *fp, char * szLine);
BOOL ReadConfig();
// char m_szRoverDesc[MAX_ROVERDESC+1];
// char m_szRoverID[MAX_ROVERID+1];
LPBYTE m_lpMapBuf;
HANDLE m_hMap;
void MapGpsData();
UINT m_nMonitorTimer;
UINT m_nActivateTimer;
};
#ifndef _DEBUG // debug version in gmarkView.cpp
inline CGmarkDoc* CGmarkView::GetDocument()
{ return (CGmarkDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
DWORD WINAPI ReadSocketThread(LPVOID lpvoid); //Read Socket Thread
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GMARKVIEW_H__F1838B1B_DD7C_4C53_B4EA_40AD1AB01A32__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -