threaddialog.cpp

来自「一个硬件测试工具的源代码」· C++ 代码 · 共 70 行

CPP
70
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?