📄 xugy03dlg.h
字号:
// Xugy03Dlg.h : header file
//
#if !defined(AFX_XUGY03DLG_H__02C813E6_9CC7_11D6_AC9F_00E018759B35__INCLUDED_)
#define AFX_XUGY03DLG_H__02C813E6_9CC7_11D6_AC9F_00E018759B35__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CXugy03Dlg dialog
class CXugy03Dlg;
struct CThreadParam
{
HANDLE hThread;
CXugy03Dlg * testDlg;
BOOLEAN bInThread;
BOOLEAN bUpdate;
UINT uiLength;
ULONG ulCount;
ULONG ulData[3];
ULONG cur_rate;
ULONG max_rate;
ULONG total_time;
unsigned char * pcIoBuffer;
char driver_name[20];
char pipe_name[20];
};
struct CKillDialogParam
{
CThreadParam * tp[3];
CXugy03Dlg * testDlg;
};
#define D12_DRIVERLOAD 0x01
#define D12_DRIVERUNLOAD 0x02
#define D12_KEYSTATUS 0x04
class CXugy03Dlg : public CDialog
{
// Construction
public:
CXugy03Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CXugy03Dlg)
enum { IDD = IDD_XUGY03_DIALOG };
CButton m_ctrlLED4;
CButton m_ctrlLED3;
CButton m_LoopStopBtn;
CButton m_LoopStartBtn;
CButton m_InStopBtn;
CButton m_InStartBtn;
CButton m_OutStopBtn;
CButton m_OutStartBtn;
CString m_InBufferSize;
CString m_OutBufferSize;
CString m_OutTotalBytes;
CString m_OutCurSpeed;
CString m_OutAverageSpeed;
CString m_OutMaxSpeed;
CString m_InTotalBytes;
CString m_InCurSpeed;
CString m_InAverageSpeed;
CString m_InMaxSpeed;
CString m_KeyStatus;
CString m_PassCount;
CString m_FailCount;
CString m_LoopBufSize;
BOOL m_LED1;
BOOL m_LED2;
BOOL m_LED3;
BOOL m_LED4;
CString m_LoopTotalBytes;
CString m_LoopRepeatTimes;
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
public:
virtual BOOL DestroyWindow();
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CXugy03Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CThreadParam m_MainRead, m_MainWrite, m_ReadWrite;
CThreadParam m_InterruptIn, m_GenericOut;
CKillDialogParam m_KillDialog;
void ChangeLED();
// Generated message map functions
//{{AFX_MSG(CXugy03Dlg)
virtual BOOL OnInitDialog();
virtual void OnOk();
virtual void OnCancel();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOutStart();
afx_msg void OnOutStop();
afx_msg void OnInStart();
afx_msg void OnInStop();
afx_msg void OnOutBufferSize();
afx_msg void OnInBufferSize();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLoopStart();
afx_msg void OnLoopStop();
afx_msg void OnLoopBufSize();
afx_msg void OnLED1();
afx_msg void OnLED2();
afx_msg void OnLED3();
afx_msg void OnLED4();
afx_msg void OnLoopRepeatTimes();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XUGY03DLG_H__02C813E6_9CC7_11D6_AC9F_00E018759B35__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -