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

📄 pageforwendingqi.cpp

📁 基于VC++的冲压燃烧室设计平台的开发 计算机仿真相对于实验研究来讲
💻 CPP
📖 第 1 页 / 共 3 页
字号:
	
	float fenzi=(float)(m_dts_caokuan/(2*tan(m_dts_neibijiajiao*PI/360))-m_dts_neiwendingqigaodu_x);
	float fenmu=(float)(1/sin(m_dts_neibijiajiao*PI/360)-1);
	if(fenmu!=0)
	m_dts_dingjiaobanjing_j=fenzi/fenmu;

}






////////////////////////////////////////////////
///////////********公式↑*******///////////////
///////////////////////////////////////////////



//////////////////////////////////////////////////////////////////
void CPageForWenDingQi::OnChangeZtZuidaliuzuxishu() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(true);
	Gongshi_Zuidaliuzuxishu();
	m_zt_zuidazusaibi_x=m_zt_zuidazusaibi_j;
	//if(m_zt_zuidaliuzuxishu*10%10==0)
	//this->UpdateData(false);
	
}

void CPageForWenDingQi::OnKillfocusZtZuidaliuzuxishu() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(false);
}
void CPageForWenDingQi::OnButtonJiSuanShuaXin() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(true);
//////////////////////////////////////////////////////
	m_resultlabel="还未校合!";
	Gongshi_Zuidaliuzuxishu();
	Gongshi_Caokuan();
	if(m_zt_zuidazusaibi_x!=0&&m_zt_caokuan_x!=0)
		Gongshi_Wendingqiquanshu();
	else
	{
		m_zt_zuidazusaibi_x=m_zt_zuidazusaibi_j;
		m_zt_caokuan_x=m_zt_caokuan_j;
		Gongshi_Wendingqiquanshu();
	}
	if(m_zt_caokuan_x!=0&&m_zt_wendingqiquanshu_x!=0)
		Gongshi_Jingxiangjianju();
	else
	{
		m_zt_caokuan_x=m_zt_caokuan_j;
		m_zt_wendingqiquanshu_x=m_zt_wendingqiquanshu_j;
		Gongshi_Jingxiangjianju();
	}
	if(m_zt_jingxiangjianju_x!=0&&m_ztxh_chuanyancaokuan!=0&&m_ztxh_jingxiangwendingqigeshu!=0)
		m_zt_zusaibi=Gongshi_ZuSaiBi();
	else
	{
		m_zt_jingxiangjianju_x=m_zt_jingxiangjianju_j;
		m_zt_zusaibi=Gongshi_ZuSaiBi();
	}

////////////////////////////////////////////////////////////

	Gongshi_BMX_NeiWenDingQiGaoDu();
	Gongshi_BMX_NeiWenDingQiDingJiaoBanJing();
	Gongshi_BMX_FengXiZongMianJi();
	Gongshi_BMX_JinQiHuanZongMianJi();
	Gongshi_BMX_JinQiHuanKuanDu();
	Gongshi_BMX_JinQiHuanChangDu();
	Gongshi_BMX_VXingCaoDangLiangZhiJing();
	Gongshi_BMX_X1();
	Gongshi_BMX_X2();
	Gongshi_BMX_X3();
	Gongshi_BMX_JiaCengHuanChangDu();


////////////////////////////////
	Gongshi_DTS_GaoDu();
	Gongshi_DTS_DingJiaoBanJing();


/////////////////////////////////////////////////////	

	this->UpdateData(0);
	
}

void CPageForWenDingQi::OnChangeZtJinkoujingya() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
    Gongshi_Caokuan();
	m_zt_caokuan_x=m_zt_caokuan_j;
}

void CPageForWenDingQi::OnKillfocusZtJinkoujingya() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);
}

void CPageForWenDingQi::OnChangeZtWeiyanliusu() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_Caokuan();
	m_zt_caokuan_x=m_zt_caokuan_j;
}

void CPageForWenDingQi::OnKillfocusZtWeiyanliusu() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);
	
}

void CPageForWenDingQi::OnChangeZtZongwen() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_Caokuan();
	m_zt_caokuan_x=m_zt_caokuan_j;
}

void CPageForWenDingQi::OnKillfocusZtZongwen() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);	
}

void CPageForWenDingQi::OnChangeZtWendingxingcanshu() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_Caokuan();
	m_zt_caokuan_x=m_zt_caokuan_j;
	this->UpdateData(0);
}

void CPageForWenDingQi::OnKillfocusZtWendingxingcanshu() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);
	
}

void CPageForWenDingQi::OnChangeZtNeibibanjin() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_Jingxiangjianju();
	m_zt_jingxiangjianju_x=m_zt_jingxiangjianju_j;
}

void CPageForWenDingQi::OnKillfocusZtNeibibanjin() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);
}

void CPageForWenDingQi::OnChangeZtZuidazusaibiX() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_Wendingqiquanshu();

}

void CPageForWenDingQi::OnKillfocusZtZuidazusaibiX() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);	
}

void CPageForWenDingQi::OnChangeZtCaokuanX() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_Wendingqiquanshu();
	Gongshi_Jingxiangjianju();
	m_zt_zusaibi=Gongshi_ZuSaiBi();
	
}

void CPageForWenDingQi::OnKillfocusZtCaokuanX() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);
	
}

void CPageForWenDingQi::OnChangeZtWendingqiquanshuX() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_Jingxiangjianju();
	m_zt_zusaibi=Gongshi_ZuSaiBi();
}

void CPageForWenDingQi::OnKillfocusZtWendingqiquanshuX() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);	
}

void CPageForWenDingQi::OnChangeZtJinxingjianjuX() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	m_zt_zusaibi=Gongshi_ZuSaiBi();
}

void CPageForWenDingQi::OnKillfocusZtJinxingjianjuX() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);
}

void CPageForWenDingQi::OnButtonXiaoHeJiSuan() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	m_zt_zusaibi=Gongshi_ZuSaiBi();
	if(m_zt_zusaibi<=0.45&&m_zt_zusaibi>0)
		m_resultlabel="小于0.45大于0\n设计结果有效!";
	else
		m_resultlabel="阻塞比超出设计范\n围,设计结果无效!";
	this->UpdateData(0);
}

void CPageForWenDingQi::OnChangeZtxhChuanyancaokuan() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	m_zt_zusaibi=Gongshi_ZuSaiBi();
}

void CPageForWenDingQi::OnKillfocusZtxhChuanyancaokuan() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);	
}

void CPageForWenDingQi::OnChangeZtxhJingxiangwendingqigeshu() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	m_zt_zusaibi=Gongshi_ZuSaiBi();	
}

void CPageForWenDingQi::OnKillfocusZtxhJingxiangwendingqigeshu() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);	
}

//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
void CPageForWenDingQi::OnChangeBmxCaokuan() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_BMX_NeiWenDingQiGaoDu();
	Gongshi_BMX_NeiWenDingQiDingJiaoBanJing();
	Gongshi_BMX_FengXiZongMianJi();
	Gongshi_BMX_JinQiHuanZongMianJi();
	Gongshi_BMX_JinQiHuanKuanDu();
	Gongshi_BMX_JinQiHuanChangDu();
	Gongshi_BMX_VXingCaoDangLiangZhiJing();
	Gongshi_BMX_X1();
	Gongshi_BMX_X2();
	Gongshi_BMX_X3();
	Gongshi_BMX_JiaCengHuanChangDu();
}

void CPageForWenDingQi::OnChangeBmxNeibijiajiao() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_BMX_NeiWenDingQiGaoDu();
	Gongshi_BMX_NeiWenDingQiDingJiaoBanJing();
	Gongshi_BMX_FengXiZongMianJi();
	Gongshi_BMX_JinQiHuanZongMianJi();
	Gongshi_BMX_JinQiHuanKuanDu();
	Gongshi_BMX_JinQiHuanChangDu();
	Gongshi_BMX_VXingCaoDangLiangZhiJing();
	Gongshi_BMX_X1();
	Gongshi_BMX_X2();
	Gongshi_BMX_X3();
	Gongshi_BMX_JiaCengHuanChangDu();

}

void CPageForWenDingQi::OnKillfocusBmxCaokuan() 
{
	// TODO: Add your control notification handler code here
	this->UpdateData(0);
	 
}

void CPageForWenDingQi::OnChangeBmxJingxiangjianju() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_BMX_NeiWenDingQiGaoDu();
	Gongshi_BMX_NeiWenDingQiDingJiaoBanJing();
	Gongshi_BMX_FengXiZongMianJi();
	Gongshi_BMX_JinQiHuanZongMianJi();
	Gongshi_BMX_JinQiHuanKuanDu();
	Gongshi_BMX_JinQiHuanChangDu();
	Gongshi_BMX_VXingCaoDangLiangZhiJing();
	Gongshi_BMX_X1();
	Gongshi_BMX_X2();
	Gongshi_BMX_X3();
	Gongshi_BMX_JiaCengHuanChangDu();

	
}

void CPageForWenDingQi::OnChangeBmxJiacengfengkuan() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	this->UpdateData(1);
	Gongshi_BMX_NeiWenDingQiGaoDu();
	Gongshi_BMX_NeiWenDingQiDingJiaoBanJing();
	Gongshi_BMX_FengXiZongMianJi();
	Gongshi_BMX_JinQiHuanZongMianJi();
	Gongshi_BMX_JinQiHuanKuanDu();
	Gongshi_BMX_JinQiHuanChangDu();
	Gongshi_BMX_VXingCaoDangLiangZhiJing();
	Gongshi_BMX_X1();
	Gongshi_BMX_X2();

⌨️ 快捷键说明

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