namedlg.cpp

来自「一款国产的8051模拟器(全部源代码) 本软件是一款8051模拟器」· C++ 代码 · 共 62 行

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