📄 userset.cpp
字号:
// UserSet.cpp : implementation file
//
#include "stdafx.h"
#include "qiyuan.h"
#include "UserSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// UserSet dialog
UserSet::UserSet(CWnd* pParent /*=NULL*/)
: CDialog(UserSet::IDD, pParent)
{
//{{AFX_DATA_INIT(UserSet)
m_UserSetRow =16;
m_UserSetStartRow = 2;
m_UserSetStartCol = 1;
m_UserSetCol = 16;
m_UserSetGoalRow = m_UserSetRow-1;
m_UserSetGoalCol = m_UserSetCol;
m_UserSetSpeed = 5;
m_UserSetWallNum = 5;
//}}AFX_DATA_INIT
}
void UserSet::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(UserSet)
DDX_Text(pDX, IDC_EDIT1, m_UserSetRow);
DDV_MinMaxUInt(pDX, m_UserSetRow, 10, 50);
DDX_Text(pDX, IDC_EDIT3, m_UserSetStartRow);
DDV_MinMaxUInt(pDX, m_UserSetStartRow, 1, 50);
DDX_Text(pDX, IDC_EDIT4, m_UserSetStartCol);
DDV_MinMaxUInt(pDX, m_UserSetStartCol, 1, 50);
DDX_Text(pDX, IDC_EDIT2, m_UserSetCol);
DDV_MinMaxUInt(pDX, m_UserSetCol, 10, 50);
DDX_Text(pDX, IDC_EDIT6, m_UserSetGoalRow);
DDV_MinMaxUInt(pDX, m_UserSetGoalRow, 1, 50);
DDX_Text(pDX, IDC_EDIT7, m_UserSetGoalCol);
DDV_MinMaxInt(pDX, m_UserSetGoalCol, 1, 50);
DDX_Text(pDX, IDC_EDIT8, m_UserSetSpeed);
DDV_MinMaxUInt(pDX, m_UserSetSpeed, 1, 10);
DDX_Text(pDX, IDC_EDIT9, m_UserSetWallNum);
DDV_MinMaxFloat(pDX, m_UserSetWallNum, 1.f, 10.f);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(UserSet, CDialog)
//{{AFX_MSG_MAP(UserSet)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// UserSet message handlers
BOOL UserSet::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -