⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 speedrlt.cpp

📁 VC开发的一个笔记本线上测试系统
💻 CPP
字号:
// SpeedRlt.cpp : implementation file
//

#include "stdafx.h"
#include "NoteBook.h"
#include "SpeedRlt.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSpeedRlt dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// CSpeedRlt message handlers

void CSpeedRlt::OnPass() 
{
	// TODO: Add your control notification handler code here
	::SetDlgItemText(::FindWindow(NULL,"LCD、整机性能测试模块"),IDC_EDIT3,
		"整机性能测试成功");
	::SendMessage(::FindWindow("#32770","CrystalMark 2004R3 [0.9.126.450] "),  
		WM_SYSCOMMAND,   SC_CLOSE,   0);
	SendMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}

void CSpeedRlt::OnFail() 
{
	// TODO: Add your control notification handler code here
    ::SetDlgItemText(::FindWindow(NULL,"LCD、整机性能测试模块"),IDC_EDIT3,
		"整机性能测试失败");
//	ShellExecute(NULL,"open","E:\\测试软件安装包\\PerformanceTest\\pt.exe",
//		NULL,NULL,SW_SHOW);
//	Sleep(10000);
//	CPerformance dlg;
//	dlg.DoModal();
	::SendMessage(::FindWindow("#32770","CrystalMark 2004R3 [0.9.126.450] "),  
		WM_SYSCOMMAND,   SC_CLOSE,   0);
	SendMessage(WM_SYSCOMMAND,SC_CLOSE,0);
}

BOOL CSpeedRlt::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	MoveWindow(842,287,174,130,TRUE);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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