www.pudn.com > Kalman--C++.rar > SetDlg.cpp


// SetDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Kalman2.h" 
#include "SetDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CSetDlg dialog 
 
 
CSetDlg::CSetDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CSetDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CSetDlg) 
	m_alfa = 1.0/60; 
	m_times = 0; 
	m_Model = FALSE; 
	m_A = 0.0; 
	//}}AFX_DATA_INIT 
} 
 
 
void CSetDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CSetDlg) 
	DDX_Text(pDX, IDC_EDIT1, m_alfa); 
	DDV_MinMaxDouble(pDX, m_alfa, 0., 1.); 
	DDX_Text(pDX, IDC_CAL_TIMES, m_times); 
	DDV_MinMaxInt(pDX, m_times, 1, 50); 
	DDX_Check(pDX, IDC_CHECK, m_Model); 
	DDX_Text(pDX, IDC_EDIT_A, m_A); 
	DDV_MinMaxDouble(pDX, m_A, 0., 1.); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CSetDlg, CDialog) 
	//{{AFX_MSG_MAP(CSetDlg) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CSetDlg message handlers