dialog1.cpp
来自「战棋游戏的地图编辑器」· C++ 代码 · 共 63 行
CPP
63 行
// dialog1.cpp : implementation file
//
#include <stdafx.h>
#include "me_dx.h"
#include "dialog1.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// dialog1 dialog
dialog1::dialog1(CWnd* pParent /*=NULL*/)
: CDialog(dialog1::IDD, pParent)
{
//{{AFX_DATA_INIT(dialog1)
m_Width = 0;
m_Height = 0;
m_Levels = 0;
m_BaseTr = 0;
//}}AFX_DATA_INIT
}
void dialog1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(dialog1)
DDX_Text(pDX, IDC_EDIT1, m_Width);
DDX_Text(pDX, IDC_EDIT2, m_Height);
DDX_Text(pDX, IDC_EDIT3, m_Levels);
DDX_Text(pDX, IDC_EDIT4, m_BaseTr);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(dialog1, CDialog)
//{{AFX_MSG_MAP(dialog1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// dialog1 message handlers
void dialog1::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
void dialog1::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?