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