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

📄 threaddialog.cpp

📁 一个硬件测试工具的源代码
💻 CPP
字号:
// ThreadDialog.cpp : implementation file
//

#include "ThreadDialog.h"
#include <afxwin.h>
#include "clibench.h"
#include "resource.h"

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

/////////////////////////////////////////////////////////////////////////////
// ThreadDialog dialog


ThreadDialog::ThreadDialog(CWnd* pParent /*=NULL*/)
	: CDialog(ThreadDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(ThreadDialog)
	noft=8;
	m_noft=noft;
	//}}AFX_DATA_INIT
}

void ThreadDialog::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	noft=m_noft;

	CMainWindow cmw;
	
	
	CDialog::OnOK();
}

void ThreadDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ThreadDialog)
	DDX_Control(pDX, IDOK, m_ok);
	DDX_Text(pDX, IDC_EDIT1, m_noft);
	DDV_MinMaxInt(pDX, m_noft,1,64);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(ThreadDialog, CDialog)
	//{{AFX_MSG_MAP(ThreadDialog)
	ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ThreadDialog message handlers

void ThreadDialog::OnChangeEdit1() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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