📄 buzz_testdlg.h
字号:
// Buzz_TestDlg.h : header file
//
#if !defined(AFX_BUZZ_TESTDLG_H__9B423E50_B336_48D2_9ABB_BA7E8CD845F4__INCLUDED_)
#define AFX_BUZZ_TESTDLG_H__9B423E50_B336_48D2_9ABB_BA7E8CD845F4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CBuzz_TestDlg dialog
#include "CHIDDevice.H" // Added by ClassView
struct BuzzerButton //按钮结构
{
int Passed; //状态
COLORREF Color; //颜色
int Shape; //形状
CRect Pos; //位置
};
class CBuzz_TestDlg : public CDialog
{
// Construction
public:
int TimeCount;
CString Prompt;
int iTestMode;
BOOL bConnect;
void DisConnect();
void Connect();
void ResetBCDEButton();
BOOL BuzzReceiveRun;
CWinThread* BuzzReceiveThred;
void ResetButton();
void SetButton();
void DrawButton(CPaintDC* pdc);
CBuzz_TestDlg(CWnd* pParent = NULL); // standard constructor
CHIDDevice Buzz;
BuzzerButton Button[20];
BuzzerButton Led[4];
BuzzerButton BCDEButton[4];
// Dialog Data
//{{AFX_DATA(CBuzz_TestDlg)
enum { IDD = IDD_BUZZ_TEST_DIALOG };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBuzz_TestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CBuzz_TestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnRetest();
afx_msg void OnFinish();
virtual void OnCancel();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnTestLed();
afx_msg BOOL OnDeviceChange(WPARAM wParam, LPARAM lParam);
afx_msg void OnAllLed();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTestButton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BUZZ_TESTDLG_H__9B423E50_B336_48D2_9ABB_BA7E8CD845F4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -