timelimitdlg.cpp

来自「51单片机学习的源代码」· C++ 代码 · 共 68 行

CPP
68
字号
// TimeLimitDlg.cpp : implementation file
//

#include "stdafx.h"
#include "mcds.h"
#include "TimeLimitDlg.h"
#include "GlobalVar.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTimeLimitDlg dialog


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


void CTimeLimitDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CTimeLimitDlg)
	DDX_Control(pDX, IDC_EDIT1, m_Edit1);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CTimeLimitDlg, CDialog)
	//{{AFX_MSG_MAP(CTimeLimitDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTimeLimitDlg message handlers

BOOL CTimeLimitDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	cs.Lock();
	nNumInfo[2]="时间";
	m_Edit1.SetWindowText(nNumInfo[7]);
	cs.Unlock();
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CTimeLimitDlg::OnOK() 
{
	// TODO: Add extra validation here

	cs.Lock();
	m_Edit1.GetWindowText(nNumInfo[7]);
	cs.Unlock();

	CDialog::OnOK();
}

⌨️ 快捷键说明

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