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

📄 wndsizecfg.cpp

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

#include "stdafx.h"
#include "MDIDemo.h"
#include "WndSizeCfg.h"

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

/////////////////////////////////////////////////////////////////////////////
// WndSizeCfg dialog


WndSizeCfg::WndSizeCfg(CWnd* pParent /*=NULL*/)
	: CDialog(WndSizeCfg::IDD, pParent)
{
	//{{AFX_DATA_INIT(WndSizeCfg)
	m_high = 500;
	m_width = 400;
	//}}AFX_DATA_INIT
	iscreate=0;
}


void WndSizeCfg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(WndSizeCfg)
	DDX_Text(pDX, IDC_EDIT1, m_high);
	DDV_MinMaxUInt(pDX, m_high, 20, 1600);
	DDX_Text(pDX, IDC_EDIT2, m_width);
	DDV_MinMaxUInt(pDX, m_width, 20, 1200);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// WndSizeCfg message handlers

void WndSizeCfg::OnOK() 
{
	this->UpdateData();
//	CString str;
//	str.Format("高%d宽%d",m_high,m_width);
//	AfxMessageBox(str);
	// TODO: Add extra validation here
	iscreate=1;
	CDialog::OnOK();
}

⌨️ 快捷键说明

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