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

📄 namedlg.cpp

📁 一款国产的8051模拟器(全部源代码) 本软件是一款8051模拟器
💻 CPP
字号:
// NAMEDLG.cpp : implementation file
//

#include "stdafx.h"
#include "MDIDemo.h"
#include "NAMEDLG.h"

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

/////////////////////////////////////////////////////////////////////////////
// NAMEDLG dialog


NAMEDLG::NAMEDLG(CWnd* pParent /*=NULL*/)
	: CDialog(NAMEDLG::IDD, pParent)
{
	//{{AFX_DATA_INIT(NAMEDLG)
	m_str = _T("");
	m_staticstr = _T("");
	//}}AFX_DATA_INIT
	OK=0;Cancel=0;
}


void NAMEDLG::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(NAMEDLG)
	DDX_Text(pDX, IDC_NAMEEDIT, m_str);
	DDX_Text(pDX, IDC_NAMESTR, m_staticstr);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(NAMEDLG, CDialog)
	//{{AFX_MSG_MAP(NAMEDLG)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// NAMEDLG message handlers

void NAMEDLG::OnButton1() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData();
	OK=1;
	CDialog::OnOK();
}

void NAMEDLG::OnButton2() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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