在型号参数界面添加三个参数试验时间、最小值、最大值。变量为double m_edit_time; double m_edit_min; double m_edit_max;
1、在SEAL_PRESSURE.h中添加代码
cpp
class CProductPara
{
public:
union
{
struct
{
...
double m_edit_min;
double m_edit_max;
double m_edit_time;
};
char len[1024];
};
};
2、在TypData.cpp中添加代码
cpp
BOOL CTypData::UpdatePara(BOOL bUpdate)
{
if(m_pPara == NULL)
return TRUE;
if(bUpdate)
{
if(!UpdateData())
return FALSE;
...
m_pPara->m_edit_min = m_edit_min;
m_pPara->m_edit_max = m_edit_max;
m_pPara->m_edit_time = m_edit_time;
}
else
{
...
m_edit_min = m_pPara->m_edit_min;
m_edit_max = m_pPara->m_edit_max;
m_edit_time = m_pPara->m_edit_time;
UpdateData(FALSE);用于将数据在屏幕中对应控件中显示出来
}
return TRUE;
}
运行程序