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

📄 numlimitdlg.cpp

📁 51单片机学习的源代码
💻 CPP
字号:
// NumLimitDlg.cpp : implementation file
//

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

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

/////////////////////////////////////////////////////////////////////////////
// CNumLimitDlg dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// CNumLimitDlg message handlers

BOOL CNumLimitDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	cs.Lock();
	nNumInfo[2]="计数";
	m_Edit1.SetWindowText(nNumInfo[9]);
	cs.Unlock();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CNumLimitDlg::OnOK() 
{
	// TODO: Add extra validation here
	cs.Lock();
	m_Edit1.GetWindowText(nNumInfo[9]);
	cs.Unlock();
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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