?? inputparadlg.cpp
字號:
// InputParaDlg.cpp : implementation file
//
#include "stdafx.h"
#include "first.h"
#include "InputParaDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// InputParaDlg dialog
InputParaDlg::InputParaDlg(CWnd* pParent /*=NULL*/)
: CDialog(InputParaDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(InputParaDlg)
m_R1 = 5;
m_R2 = 5;
m_Ui_A = 10;
m_Ui_T = 6;
m_Uref = 2;
m_Uz = 6;
//}}AFX_DATA_INIT
}
void InputParaDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(InputParaDlg)
DDX_Text(pDX, IDC_R1, m_R1);
DDV_MinMaxInt(pDX, m_R1, 1, 20);
DDX_Text(pDX, IDC_R2, m_R2);
DDV_MinMaxInt(pDX, m_R2, 1, 20);
DDX_Text(pDX, IDC_Ui_A, m_Ui_A);
DDV_MinMaxInt(pDX, m_Ui_A, 1, 20);
DDX_Text(pDX, IDC_Ui_T, m_Ui_T);
DDV_MinMaxInt(pDX, m_Ui_T, 1, 10);
DDX_Text(pDX, IDC_Uref, m_Uref);
DDV_MinMaxInt(pDX, m_Uref, 1, 5);
DDX_Text(pDX, IDC_Uz, m_Uz);
DDV_MinMaxInt(pDX, m_Uz, 1, 10);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(InputParaDlg, CDialog)
//{{AFX_MSG_MAP(InputParaDlg)
ON_BN_CLICKED(IDC_DEFAULT_PARA, OnDefaultPara)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// InputParaDlg message handlers
void InputParaDlg::OnDefaultPara()
{
// TODO: Add your control notification handler code here
m_R1=m_R2=5;
m_Ui_A=10;
m_Ui_T=6;
m_Uref=2;
m_Uz=6;
UpdateData(FALSE);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -