www.pudn.com > roll.rar > BiemParameter.cpp


// BiemParameter.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "roll.h" 
#include "BiemParameter.h" 
#include "bbroll.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CBiemParameter dialog 
 
CBiemParameter::CBiemParameter(CWnd* pParent,int AMax) 
	: CDialog(CBiemParameter::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CBiemParameter) 
	m_pActingMax = AMax; 
	m_ActPoint=theRoll.m_ActPoint; 
	m_force=theRoll.m_force; 
	m_Press=theRoll.m_Press; 
	m_Rotate=theRoll.m_Rotate; 
	m_InnTemperature=theRoll.m_InnTemperature; 
	m_OutTemperature=theRoll.m_OutTemperature; 
	m_Young=theRoll.m_Young; 
	m_Poisson=theRoll.m_Poisson; 
	m_Thermal=theRoll.m_Thermal; 
	m_Weight=theRoll.m_Weight; 
	//}}AFX_DATA_INIT 
} 
 
void CBiemParameter::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CBiemParameter) 
	DDX_Text(pDX, IDC_ACTPOINT, m_ActPoint); 
	DDV_MinMaxInt(pDX, m_ActPoint, 0, m_pActingMax); 
	DDX_Text(pDX, IDC_FORCEVALUE, m_force); 
	DDX_Text(pDX, IDC_PRESSVALUE, m_Press); 
	DDX_Text(pDX, IDC_ROTATEVALUE, m_Rotate); 
	DDX_Text(pDX, IDC_INNTVALUE, m_InnTemperature); 
	DDX_Text(pDX, IDC_OUTTVALUE, m_OutTemperature); 
	DDX_Text(pDX, IDC_YOUNG, m_Young); 
	DDX_Text(pDX, IDC_POISSON, m_Poisson); 
	DDX_Text(pDX, IDC_THERMAL, m_Thermal); 
	DDX_Text(pDX, IDC_WEIGHT, m_Weight); 
	//}}AFX_DATA_MAP 
} 
 
BEGIN_MESSAGE_MAP(CBiemParameter, CDialog) 
	//{{AFX_MSG_MAP(CBiemParameter) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CBiemParameter message handlers 
BOOL CBiemParameter::OnInitDialog()  
{ 
	char buf[80]; 
	CDialog::OnInitDialog(); 
	CStatic* pStatic=(CStatic*)GetDlgItem(IDC_STATICCONT); 
	pStatic->GetWindowText(buf,79); 
	sprintf(&(buf[strlen(buf)]),"[0...%1d]",m_pActingMax); 
	pStatic->SetWindowText(buf); 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}