readertest.cpp

来自「VC开发的一个笔记本线上测试系统」· C++ 代码 · 共 61 行

CPP
61
字号
// ReaderTest.cpp : implementation file
//

#include "stdafx.h"
#include "NoteBook.h"
#include "ReaderTest.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CReaderTest dialog


CReaderTest::CReaderTest(CWnd* pParent /*=NULL*/)
	: CDialog(CReaderTest::IDD, pParent)
{
	//{{AFX_DATA_INIT(CReaderTest)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CReaderTest::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CReaderTest)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CReaderTest, CDialog)
	//{{AFX_MSG_MAP(CReaderTest)
	ON_BN_CLICKED(IDC_PASS, OnPass)
	ON_BN_CLICKED(IDC_FAIL, OnFail)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CReaderTest message handlers

void CReaderTest::OnPass() 
{
	// TODO: Add your control notification handler code here
	::SetDlgItemText(::FindWindow(NULL,"外设、端口测试模块"),IDC_EDIT4,
		"读卡器测试成功");
	SendMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}

void CReaderTest::OnFail() 
{
	// TODO: Add your control notification handler code here
	::SetDlgItemText(::FindWindow(NULL,"外设、端口测试模块"),IDC_EDIT4,
		"读卡器测试失败");
	SendMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?