📄 plcin1dlg.cpp
字号:
m_pin3.SetCheck(0);
theApp.yxtask.con_in[theApp.krnum].B.u2_kgbf=0;
}
}
void CPlcIn1Dlg::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 CPlcIn1Dlg::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 CPlcIn1Dlg::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 CPlcIn1Dlg::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 CPlcIn1Dlg::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 CPlcIn1Dlg::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_EDIT_P1,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_EDIT_P1,string);
}
void CPlcIn1Dlg::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_EDIT_P2,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_EDIT_P2,string);
}
void CPlcIn1Dlg::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_EDIT_P3,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_EDIT_P3,string);
}
void CPlcIn1Dlg::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_EDIT_P4,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_EDIT_P4,string);
}
void CPlcIn1Dlg::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_EDIT_P5,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_EDIT_P5,string);
}
void CPlcIn1Dlg::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_EDIT_P6,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_EDIT_P6,string);
}
void CPlcIn1Dlg::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_EDIT_P7,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_EDIT_P7,string);
}
void CPlcIn1Dlg::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_EDIT_P8,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_EDIT_P8,string);
}
void CPlcIn1Dlg::OnChangeInput1()
{
// 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
}
void CPlcIn1Dlg::OnChangeInput2()
{
// 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
}
void CPlcIn1Dlg::OnChangeInput3()
{
// 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
}
void CPlcIn1Dlg::OnChangeInput4()
{
// 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
}
void CPlcIn1Dlg::OnChangeInput5()
{
// 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
}
void CPlcIn1Dlg::OnChangeInput6()
{
// 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
}
void CPlcIn1Dlg::OnChangeInput7()
{
// 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
}
void CPlcIn1Dlg::OnChangeInput8()
{
// 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
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -