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

📄 commdlg.h

📁 wince下面一个串口程序,用于读取并分GPS数据,主要可以提取经纬度和时间
💻 H
字号:
// commDlg.h : header file
//

#if !defined(AFX_COMMDLG_H__C1C3A6AF_AA02_4FFE_B63E_4D40B53E6932__INCLUDED_)
#define AFX_COMMDLG_H__C1C3A6AF_AA02_4FFE_B63E_4D40B53E6932__INCLUDED_

#include "GPSDevice.h"

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

/////////////////////////////////////////////////////////////////////////////
// CCommDlg dialog

class CCommDlg : public CDialog
{
// Construction
public:
	CCommDlg(CWnd* pParent = NULL);	// standard constructor
	BOOL IsHex(char *pString);
	void ToHex(char *pSource,char *pDest);
	void GetANSI(LPCTSTR lpString,char *charstr);
	char * UnicodeToAnsi(LPCTSTR lpString);
	virtual		~CCommDlg();
	
	struct DlgVarAttr
	{
		CString	PORT;
		CString	BAND;
		CString	DATABITS;
		CString	STOPBITS;
		CString	PARITY;
		UINT	RCVHEX;
		UINT	SENDHEX;
		UINT	AUTOSEND;
		CString	FREQUENCY;
	}DlgAttr;	//to save variant in the main window


// Dialog Data
	//{{AFX_DATA(CCommDlg)
	enum { IDD = IDD_COMM_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCommDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CString m_statusbar_str;
	CGPSDevice m_com1;
	double	CStringToInt(CString str);

	// Generated message map functions
	//{{AFX_MSG(CCommDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangePort();
	afx_msg void OnSelchangeBand();
	afx_msg void OnSelchangeDatabits();
	afx_msg void OnSelchangeStopbits();
	afx_msg void OnSelchangeParity();
	afx_msg void OnBtnopen();
	afx_msg void OnChkrcvhex();
	afx_msg void OnChksndhex();
	afx_msg void OnAutosend();
	afx_msg void OnChangeEdtfrequency();
	afx_msg void OnKillfocusEdtfrequency();
	afx_msg void OnCommunication(WPARAM ch, LPARAM port);
	afx_msg void OnClsrcv();
	afx_msg void OnSave();
	afx_msg void OnClssend();
	afx_msg void OnMansend();
	afx_msg void OnReset();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnSetfocusEdtsend();
	afx_msg void OnKillfocusEdtsend();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_COMMDLG_H__C1C3A6AF_AA02_4FFE_B63E_4D40B53E6932__INCLUDED_)

⌨️ 快捷键说明

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