📄 perioddlg.cpp
字号:
// PeriodDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Architecture.h"
#include "PeriodDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPeriodDlg dialog
CPeriodDlg::CPeriodDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPeriodDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPeriodDlg)
m_Add = 0;
m_Mul = 0;
m_Div = 0;
//}}AFX_DATA_INIT
}
void CPeriodDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPeriodDlg)
DDX_Text(pDX, IDC_EDIT2, m_Mul);
DDV_MinMaxInt(pDX,m_Mul,1,20);
DDX_Text(pDX, IDC_EDIT3, m_Div);
DDV_MinMaxInt(pDX,m_Div,1,20);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPeriodDlg, CDialog)
//{{AFX_MSG_MAP(CPeriodDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPeriodDlg message handlers
void CPeriodDlg::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
void CPeriodDlg::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -