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

📄 plc11indlg.cpp

📁 波峰焊后台控制软件-英文版
💻 CPP
📖 第 1 页 / 共 2 页
字号:
		    theApp.yxtask.con_in[theApp.krnum].B.u0_kgbf=0;
	}
	
}

void CPlc11InDlg::OnPart2() 
{//子项2
	// TODO: Add your control notification handler code here
	if((m_pin2.GetCheck()%2)!=0)
	{
			m_pin2.SetCheck(1);	
		    theApp.yxtask.con_in[theApp.krnum].B.u1_kgbf=1;
	}else
	{
			m_pin2.SetCheck(0);	
		    theApp.yxtask.con_in[theApp.krnum].B.u1_kgbf=0;
	}
	
}

void CPlc11InDlg::OnPart3() 
{//子项3
	// TODO: Add your control notification handler code here
	if((m_pin3.GetCheck()%2)!=0)
	{
			m_pin3.SetCheck(1);	
		    theApp.yxtask.con_in[theApp.krnum].B.u2_kgbf=1;
	}else
	{
			m_pin3.SetCheck(0);	
		    theApp.yxtask.con_in[theApp.krnum].B.u2_kgbf=0;
	}
	
}

void CPlc11InDlg::OnPart4() 
{//子项4
	// TODO: Add your control notification handler code here
	if((m_pin4.GetCheck()%2)!=0)
	{
			m_pin4.SetCheck(1);	
		    theApp.yxtask.con_in[theApp.krnum].B.u3_kgbf=1;
	}else
	{
			m_pin4.SetCheck(0);	
		    theApp.yxtask.con_in[theApp.krnum].B.u3_kgbf=0;
	}
	
}

void CPlc11InDlg::OnPart5() 
{//子项5
	// TODO: Add your control notification handler code here
	if((m_pin5.GetCheck()%2)!=0)
	{
			m_pin5.SetCheck(1);	
		    theApp.yxtask.con_in[theApp.krnum].B.u4_kgbf=1;
	}else
	{
			m_pin5.SetCheck(0);	
		    theApp.yxtask.con_in[theApp.krnum].B.u4_kgbf=0;
	}
	
}

void CPlc11InDlg::OnPart6() 
{//子项6
	// TODO: Add your control notification handler code here
	if((m_pin6.GetCheck()%2)!=0)
	{
			m_pin6.SetCheck(1);	
		    theApp.yxtask.con_in[theApp.krnum].B.u5_kgbf=1;
	}else
	{
			m_pin6.SetCheck(0);	
		    theApp.yxtask.con_in[theApp.krnum].B.u5_kgbf=0;
	}
	
}

void CPlc11InDlg::OnPart7() 
{//子项7
	// TODO: Add your control notification handler code here
	if((m_pin7.GetCheck()%2)!=0)
	{
			m_pin7.SetCheck(1);	
		    theApp.yxtask.con_in[theApp.krnum].B.u6_kgbf=1;
	}else
	{
			m_pin7.SetCheck(0);	
		    theApp.yxtask.con_in[theApp.krnum].B.u6_kgbf=0;
	}
	
}

void CPlc11InDlg::OnPart8() 
{//子项8
	// TODO: Add your control notification handler code here
	if((m_pin8.GetCheck()%2)!=0)
	{
			m_pin8.SetCheck(1);	
		    theApp.yxtask.con_in[theApp.krnum].B.u7_kgbf=1;
	}else
	{
			m_pin8.SetCheck(0);	
		    theApp.yxtask.con_in[theApp.krnum].B.u7_kgbf=0;
	}
	
}



void CPlc11InDlg::OnChangeEditp1() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP1,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][0]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP1,string);	
	
}

void CPlc11InDlg::OnChangeEditp2() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP2,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][1]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP2,string);	
	
}

void CPlc11InDlg::OnChangeEditp3() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP3,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][2]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP3,string);	
	
}

void CPlc11InDlg::OnChangeEditp4() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP4,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][3]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP4,string);	
	
	
}

void CPlc11InDlg::OnChangeEditp5() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP5,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][4]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP5,string);	
	
}

void CPlc11InDlg::OnChangeEditp6() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP6,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][5]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP6,string);	
	
}

void CPlc11InDlg::OnChangeEditp7() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP7,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][6]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP7,string);	
	
}

void CPlc11InDlg::OnChangeEditp8() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
    unsigned short wBuf[32];
	int j;
	CString  string;

	GetDlgItemText(IDC_EDITP8,wBuf,20);
	j=_wtoi(wBuf);
	if(j>256) j=256;
	if(j<=0) j=1;
	theApp.yxtask.us[theApp.krnum][7]=j-1;
	string.Format(_T("%3d"),j);
    SetDlgItemText(IDC_EDITP8,string);			
	
}

⌨️ 快捷键说明

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