setparadialog.cpp

来自「vc++ study」· C++ 代码 · 共 149 行

CPP
149
字号
// SetParaDialog.cpp : implementation file
//

#include "stdafx.h"
#include "IsoData.h"
#include "SetParaDialog.h"
#include "MainFrm.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetParaDialog

IMPLEMENT_DYNCREATE(CSetParaDialog, CFormView)

CSetParaDialog::CSetParaDialog()
	: CFormView(CSetParaDialog::IDD)
{
	//{{AFX_DATA_INIT(CSetParaDialog)
	m_iExpectPaCenMount = 0;
	m_iInitialPaCenMount = 0;
	m_iMinPaMount = 0;
	m_dMaxBZCha = 0.0;
	m_dMinDisPatCen = 0.0;
	m_iMaxCount = 0;
	m_iMaxUniteMount = 0;
	//}}AFX_DATA_INIT
}

CSetParaDialog::~CSetParaDialog()
{
}

void CSetParaDialog::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetParaDialog)
	DDX_Text(pDX, IDC_EDIT1, m_iExpectPaCenMount);
	DDX_Text(pDX, IDC_EDIT2, m_iInitialPaCenMount);
	DDX_Text(pDX, IDC_EDIT3, m_iMinPaMount);
	DDX_Text(pDX, IDC_EDIT4, m_dMaxBZCha);
	DDX_Text(pDX, IDC_EDIT5, m_dMinDisPatCen);
	DDX_Text(pDX, IDC_EDIT7, m_iMaxCount);
	DDX_Text(pDX, IDC_EDIT6, m_iMaxUniteMount);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetParaDialog, CFormView)
	//{{AFX_MSG_MAP(CSetParaDialog)
	ON_EN_KILLFOCUS(IDC_EDIT1, OnKillfocusEdit1)
	ON_EN_KILLFOCUS(IDC_EDIT2, OnKillfocusEdit2)
	ON_EN_KILLFOCUS(IDC_EDIT3, OnKillfocusEdit3)
	ON_EN_KILLFOCUS(IDC_EDIT4, OnKillfocusEdit4)
	ON_EN_KILLFOCUS(IDC_EDIT5, OnKillfocusEdit5)
	ON_EN_KILLFOCUS(IDC_EDIT6, OnKillfocusEdit6)
	ON_EN_KILLFOCUS(IDC_EDIT7, OnKillfocusEdit7)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetParaDialog diagnostics

#ifdef _DEBUG
void CSetParaDialog::AssertValid() const
{
	CFormView::AssertValid();
}

void CSetParaDialog::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CSetParaDialog message handlers

void CSetParaDialog::OnKillfocusEdit1() 
{
	// TODO: Add your control notification handler code here
	CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
	UpdateData(true);
	pFrame->pCIsoDataView->m_iExpectPaCenMount = m_iExpectPaCenMount;
		
}

void CSetParaDialog::OnKillfocusEdit2() 
{
	// TODO: Add your control notification handler code here
	CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
	UpdateData(true);
	pFrame->pCIsoDataView->m_iInitialPaCenMount = m_iInitialPaCenMount;
		
}

void CSetParaDialog::OnKillfocusEdit3() 
{
	// TODO: Add your control notification handler code here
	CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
	UpdateData(true);
	pFrame->pCIsoDataView->m_iMinPaMount = m_iMinPaMount;
	
}

void CSetParaDialog::OnKillfocusEdit4() 
{
	// TODO: Add your control notification handler code here
	CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
	UpdateData(true);
	pFrame->pCIsoDataView->m_dMaxBZCha = m_dMaxBZCha;
		
}

void CSetParaDialog::OnKillfocusEdit5() 
{
	// TODO: Add your control notification handler code here
	CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
	UpdateData(true);
	pFrame->pCIsoDataView->m_dMinDisPatCen = m_dMinDisPatCen;
		
}

void CSetParaDialog::OnKillfocusEdit6() 
{
	// TODO: Add your control notification handler code here
	CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
	UpdateData(true);
	pFrame->pCIsoDataView->m_iMaxUniteMount = m_iMaxUniteMount;
	int i;
	i=2;
	
}

void CSetParaDialog::OnKillfocusEdit7() 
{
	// TODO: Add your control notification handler code here
	CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
	UpdateData(true);
	pFrame->pCIsoDataView->m_iMaxCount = m_iMaxCount;
	int i;
	i=1;
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?