a
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#ifndef INCLUDE_AFX_CDIALOG_LOGGING_SELECT_COM_PORT_WND_H_20191212
|
||||
#define INCLUDE_AFX_CDIALOG_LOGGING_SELECT_COM_PORT_WND_H_20191212
|
||||
|
||||
#pragma once
|
||||
#include "afxwin.h"
|
||||
|
||||
#define GEOMATIVE_ADDRESS 0xEEEEEEEE//Geomative地址
|
||||
#define UNDER_MACHINE_ADDRESS 0xDDDDDDDD//下位机地址
|
||||
/*#define MSG_RECEIVE_LOGIN (0xC0)
|
||||
#define MODULE_NAME _T("CDialogLoggingSelectComPortWnd")*/
|
||||
#define RECV_DATA_FAILED_ATTEMPTS_TIMES 3 //接收数据失败尝试次数
|
||||
// CDialogLoggingSelectComPortWnd 对话框
|
||||
|
||||
class CDialogLoggingSelectComPortWnd : public CDialog
|
||||
{
|
||||
DECLARE_DYNAMIC(CDialogLoggingSelectComPortWnd)
|
||||
|
||||
public:
|
||||
CDialogLoggingSelectComPortWnd(CWnd* pParent = NULL); // 标准构造函数
|
||||
virtual ~CDialogLoggingSelectComPortWnd();
|
||||
|
||||
CComboBox m_comComNameList;
|
||||
// 对话框数据
|
||||
enum { IDD = IDD_DIALOG_LOGGING_SELECT_COM_PORT };
|
||||
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnBnClickedOk();
|
||||
afx_msg void OnBnClickedCancel();
|
||||
|
||||
CString GetSelectComm();
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
private:
|
||||
CSComPort m_SComPort;
|
||||
CString m_strComName;
|
||||
int m_iSeriNo;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user