📄 testdlg.h
字号:
// testDlg.h : header file
//
#if !defined(AFX_TESTDLG_H__0B453A60_AE2F_4119_AF51_CC52D47F30DF__INCLUDED_)
#define AFX_TESTDLG_H__0B453A60_AE2F_4119_AF51_CC52D47F30DF__INCLUDED_
#include "HexEidt.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog
#include "lxDialog.h"
#include "TestListBox.h"
#include "ReceiveInfo.h"
#include "DialogTabSetMode.h"
#include "DialogDataSet.h"
#include "afxtempl.h"
#include "SortListCtrl.h"
#include "ReceiveSQLDate.h"
class CTestDlg : public ClxDialog
{
// Construction
public:
void ConnectTheSQLDate();
CString m_strConnect_name;
CString GetTheSQLConnect();
BOOL TranslateSQLDate();
void initializationSQL();
_ConnectionPtr m_DBCnt;
void TranslateReceiveInfo();
CFont m_fontLogal;
DWORD ReverseDword(DWORD cstwordID);
CDialogDataSet m_dialogDataSet;
CDialogTabSetMode m_dialogTabtMode;
long m_lgReaderInterval;
int m_nReaderMode;
CString m_strTagID;
DWORD CoverStrToID(CString constrId);
int m_cannum;
int m_devtype;
DWORD m_devind;
static UINT ReceiveThread(void *param);
void ShowInfo(CString str,int code);
int m_connect;
CTestDlg(CWnd* pParent = NULL); // standard constructor
int strtodata(unsigned char *str, unsigned char *data,int len,int flag);
int chartoint(unsigned char chr, unsigned char *cint);
CArray<CReceiveInfo,CReceiveInfo> m_ReceiveInfo;
CArray<VCI_CAN_OBJ,VCI_CAN_OBJ> m_ReceiveInfoThread;
CArray<DWORD,DWORD>m_wordPollingID;
CArray<CReceiveSQLDate,CReceiveSQLDate> m_receiveSQLDate;
DWORD m_wordInterval;
BOOL m_blNewTag;
void WriteErroLog(CString conststrerro);
// _ApplicationPtr m_sqldmoApplication;
// Dialog Data
//{{AFX_DATA(CTestDlg)
enum { IDD = IDD_TEST_DIALOG };
CComboBox m_ctrReaderPlus;
CComboBox m_ctrBaud;
CListCtrl m_ctrTagShow;
CComboBox m_ComboMode;
CComboBox m_ComboCANInd;
CTestListBox m_ListInfo;
CComboBox m_ComboSendType;
DWORD m_EditSendFrmID;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestDlg)
public:
virtual void Serialize(CArchive& ar);
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CRITICAL_SECTION m_Section;
// Generated message map functions
//{{AFX_MSG(CTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnButtonConnect();
afx_msg void OnButtonStartcan();
afx_msg void OnButtonResetcan();
afx_msg void OnButtonSetmode();
afx_msg void OnButtonCalltag();
afx_msg void OnButtonReadedata();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnChangeEditSendframeid();
afx_msg void OnButtonSetplus();
afx_msg void OnButtonGetplus();
afx_msg void OnButtonGetmode();
afx_msg void OnButtoncls();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnColumnclickListTagshow(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnItemclickListTagshow(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnKeydownListTagshow(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButIdset();
afx_msg void OnButStartPolling();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTDLG_H__0B453A60_AE2F_4119_AF51_CC52D47F30DF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -