📄 tongxundlg.h
字号:
// tongxunDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_TONGXUNDLG_H__44F8A8E2_AC84_4324_AC19_D4B1C0300DBA__INCLUDED_)
#define AFX_TONGXUNDLG_H__44F8A8E2_AC84_4324_AC19_D4B1C0300DBA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTongxunDlg dialog
class CTongxunDlg : public CDialog
{
// Construction
public:
CTongxunDlg(CWnd* pParent = NULL); // standard constructor
int String2Hex(CString str, CByteArray &);
char ConvertHexChar(char);
int string_to_hex(CString);
CString twohex2string(int);
CString onehex2string(int);
int bitn_str2dec(CString,int);
int onehexstr2dec(char);
CString nbit_dec2str(int,int);
CString rxdata_notdisplay; //定义一个公共变量,用于查询时作显示
int receiving_flag; //正在读缓冲区标志,此时其它的程序不要打断它
long len_lasttime; //存储上次读出缓冲区的数据的长度
int killtimer_flag; //停止计时器标志,是为了在发送其它命令时就不自动发送查询命令
int have_chosecom_flag;
int have_chosebud_flag;
int have_warm_flag;
// Dialog Data
//{{AFX_DATA(CTongxunDlg)
enum { IDD = IDD_TONGXUN_DIALOG };
CButton m_autoinquire;
CComboBox m_chosebud;
CComboBox m_chosecom;
CButton m_inquire;
CButton m_voltset;
CButton m_clearrxdata;
CButton m_closejcq;
CButton m_chargeon;
CButton m_open_comport;
CMSComm m_ctrlComm;
CString m_strrxdata;
CString m_chargesuc;
CString m_vsetdata;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTongxunDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTongxunDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOnComm();
afx_msg void OnOpenComport();
afx_msg void OnChargeon();
afx_msg void OnClosejcq();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClearrxdata();
afx_msg void OnVoltset();
afx_msg void OnInquire();
afx_msg void OnSelchangeChosecom();
afx_msg void OnSelchangeChosebud();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TONGXUNDLG_H__44F8A8E2_AC84_4324_AC19_D4B1C0300DBA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -