📄 usbtest.cpp
字号:
// UsbTest.cpp : implementation file
//
#include "stdafx.h"
#include "NoteBook.h"
#include "UsbTest.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUsbTest dialog
CUsbTest::CUsbTest(CWnd* pParent /*=NULL*/)
: CDialog(CUsbTest::IDD, pParent)
{
//{{AFX_DATA_INIT(CUsbTest)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CUsbTest::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CUsbTest)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CUsbTest, CDialog)
//{{AFX_MSG_MAP(CUsbTest)
ON_BN_CLICKED(IDC_PASS, OnPass)
ON_BN_CLICKED(IDC_FAIL, OnFail)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CUsbTest message handlers
void CUsbTest::OnPass()
{
// TODO: Add your control notification handler code here
::SetDlgItemText(::FindWindow(NULL,"外设、端口测试模块"),IDC_EDIT5,
"读卡器测试成功");
SendMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}
void CUsbTest::OnFail()
{
// TODO: Add your control notification handler code here
::SetDlgItemText(::FindWindow(NULL,"外设、端口测试模块"),IDC_EDIT5,
"读卡器测试失败");
SendMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -