📄 dialog1.cpp
字号:
// Dialog1.cpp : implementation file
//
#include "stdafx.h"
#include "test.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_Levels = 3;
m_Samples = 16;
//}}AFX_DATA_INIT
}
void Dialog1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Dialog1)
DDX_Text(pDX, IDC_EDIT1, m_Levels);
DDV_MinMaxInt(pDX, m_Levels, 1, 5);
DDX_Text(pDX, IDC_EDIT2, m_Samples);
DDV_MinMaxInt(pDX, m_Samples, 4, 32);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Dialog1, CDialog)
//{{AFX_MSG_MAP(Dialog1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Dialog1 message handlers
void Dialog1::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -