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

📄 setmazesize.cpp

📁 Visual C++ 游戏开发与设计实例 源代码(所有)
💻 CPP
字号:
// SetMazeSize.cpp : implementation file
//

#include "stdafx.h"
#include "mergenew.h"
#include "SetMazeSize.h"

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

/////////////////////////////////////////////////////////////////////////////
// SetMazeSize dialog


SetMazeSize::SetMazeSize(CWnd* pParent /*=NULL*/)
	: CDialog(SetMazeSize::IDD, pParent)
{
	//{{AFX_DATA_INIT(SetMazeSize)
	m_row = 0;
	m_col = 0;
	//}}AFX_DATA_INIT
}


void SetMazeSize::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(SetMazeSize)
	DDX_Control(pDX, IDOK, m_cancel);
	DDX_Control(pDX, IDCANCEL, m_ok);
	DDX_Text(pDX, IDC_EDIT1, m_row);
	DDX_Text(pDX, IDC_EDIT2, m_col);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(SetMazeSize, CDialog)
	//{{AFX_MSG_MAP(SetMazeSize)
	ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
	ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// SetMazeSize message handlers

void SetMazeSize::OnChangeEdit1() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here

}

void SetMazeSize::OnChangeEdit2() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
}

void SetMazeSize::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

void SetMazeSize::OnCancel() 
{
	// TODO: Add extra cleanup here
	
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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