⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inputparadlg.cpp

📁 通过输入不同的电路参数就可以从窗口得到相应的图形仿真结果。
💻 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 + -