perioddlg.cpp
来自「计算机体系结构中,关于DLXS的模拟程序.在vc6.0下编译通过.」· C++ 代码 · 共 62 行
CPP
62 行
// 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 + =
减小字号Ctrl + -
显示快捷键?