?? gpsdlg.h
字號:
// GPSDlg.h : header file
//
#if !defined(AFX_GPSDLG_H__0F4214F4_F527_4882_A0D7_772B6A17453D__INCLUDED_)
#define AFX_GPSDLG_H__0F4214F4_F527_4882_A0D7_772B6A17453D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CGPSDlg dialog
#define MAXLENGTH 2048 //最大字節數
class CGPSDlg : public CDialog
{
// Construction
public:
CGPSDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGPSDlg)
enum { IDD = IDD_GPS_DIALOG };
CComboBox m_Comm;
CString m_strCourse;
CString m_strDate;
CString m_strLatitude;
CString m_strLongitude;
CString m_strSpeed;
CString m_strTime;
CString m_strStatus;
int m_nCommIndex;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGPSDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
//
HANDLE m_hComm; //串口句柄
CString m_strRecv; //接收到的GPS數據
DWORD m_dwRwByte; //讀寫字節數
DWORD m_dwError; //錯誤碼
COMSTAT m_CommStat; //通信狀態結構
BYTE m_RecvBuf[MAXLENGTH]; //接收緩沖區
//
void ClearRecvBuf(); //接收緩沖區清0
void ClearEdit(); //清除編輯框顯示
BOOL InitComm(CString strComm); //初始化串口
BOOL GetGPSParam(); //獲得GPS參數
// Generated message map functions
//{{AFX_MSG(CGPSDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
afx_msg void OnStop();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GPSDLG_H__0F4214F4_F527_4882_A0D7_772B6A17453D__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -