📄 dian.cpp
字号:
dzh1[4][3]=0x0ff;
dzh2[3][4]=0x008;
}
void Cdian::OnButton51()
{
// TODO: Add your control notification handler code here
b37.SetState(2);
dzh1[4][4]=0x0f7;
dzh2[4][4]=0x008;
}
void Cdian::OnDoubleclickedButton51()
{
// TODO: Add your control notification handler code here
b37.SetState(0);
dzh1[4][4]=0x0ff;
dzh2[4][4]=0x008;
}
void Cdian::OnButton52()
{
// TODO: Add your control notification handler code here
b38.SetState(2);
dzh1[4][5]=0x0fb;
dzh2[5][4]=0x008;
}
void Cdian::OnDoubleclickedButton52()
{
// TODO: Add your control notification handler code here
b38.SetState(0);
dzh1[4][5]=0x0ff;
dzh2[5][4]=0x008;
}
void Cdian::OnButton53()
{
// TODO: Add your control notification handler code here
b39.SetState(2);
dzh1[4][6]=0x0fd;
dzh2[6][4]=0x008;
}
void Cdian::OnDoubleclickedButton53()
{
// TODO: Add your control notification handler code here
b39.SetState(0);
dzh1[4][6]=0x0ff;
dzh2[6][4]=0x008;
}
void Cdian::OnButton54()
{
// TODO: Add your control notification handler code here
b40.SetState(2);
dzh1[4][7]=0x0fe;
dzh2[7][4]=0x008;
}
void Cdian::OnDoubleclickedButton54()
{
// TODO: Add your control notification handler code here
b40.SetState(0);
dzh1[4][7]=0x0fe;
dzh2[7][4]=0x008;
}
void Cdian::OnButton55()
{
// TODO: Add your control notification handler code here
b41.SetState(2);
dzh1[5][0]=0x07f;
dzh2[0][5]=0x004;
}
void Cdian::OnDoubleclickedButton55()
{
// TODO: Add your control notification handler code here
b41.SetState(0);
dzh1[5][0]=0x0ff;
dzh2[0][5]=0x004;
}
void Cdian::OnButton56()
{
// TODO: Add your control notification handler code here
b42.SetState(2);
dzh1[5][1]=0x0bf;
dzh2[1][5]=0x004;
}
void Cdian::OnDoubleclickedButton56()
{
// TODO: Add your control notification handler code here
b42.SetState(0);
dzh1[5][1]=0x0ff;
dzh2[1][5]=0x004;
}
void Cdian::OnButton57()
{
// TODO: Add your control notification handler code here
b43.SetState(2);
dzh1[5][2]=0x0df;
dzh2[2][5]=0x004;
}
void Cdian::OnDoubleclickedButton57()
{
// TODO: Add your control notification handler code here
b43.SetState(0);
dzh1[5][2]=0x0ff;
dzh2[2][5]=0x004;
}
void Cdian::OnButton58()
{
// TODO: Add your control notification handler code here
b44.SetState(2);
dzh1[5][3]=0x0ef;
dzh2[3][5]=0x004;
}
void Cdian::OnDoubleclickedButton58()
{
// TODO: Add your control notification handler code here
b44.SetState(0);
dzh1[5][3]=0x0ff;
dzh2[3][5]=0x004;
}
void Cdian::OnButton59()
{
// TODO: Add your control notification handler code here
b45.SetState(2);
dzh1[5][4]=0x0f7;
dzh2[4][5]=0x004;
}
void Cdian::OnDoubleclickedButton59()
{
// TODO: Add your control notification handler code here
b45.SetState(0);
dzh1[5][4]=0x0ff;
dzh2[4][5]=0x004;
}
void Cdian::OnButton60()
{
// TODO: Add your control notification handler code here
b46.SetState(2);
dzh1[5][5]=0x0fb;
dzh2[5][5]=0x004;
}
void Cdian::OnDoubleclickedButton60()
{
// TODO: Add your control notification handler code here
b46.SetState(0);
dzh1[5][5]=0x0ff;
dzh2[5][5]=0x004;
}
void Cdian::OnButton61()
{
// TODO: Add your control notification handler code here
b47.SetState(2);
dzh1[5][6]=0x0fd;
dzh2[6][5]=0x004;
}
void Cdian::OnDoubleclickedButton61()
{
// TODO: Add your control notification handler code here
b47.SetState(2);
dzh1[5][6]=0x0fd;
dzh2[6][5]=0x004;
}
void Cdian::OnButton62()
{
// TODO: Add your control notification handler code here
b48.SetState(2);
dzh1[5][7]=0x0fe;
dzh2[7][5]=0x004;
}
void Cdian::OnDoubleclickedButton62()
{
// TODO: Add your control notification handler code here
b48.SetState(0);
dzh1[5][7]=0x0ff;
dzh2[7][5]=0x004;
}
void Cdian::OnButton63()
{
// TODO: Add your control notification handler code here
b49.SetState(2);
dzh1[6][0]=0x07f;
dzh2[0][6]=0x002;
}
void Cdian::OnDoubleclickedButton63()
{
// TODO: Add your control notification handler code here
b49.SetState(0);
dzh1[6][0]=0x0ff;
dzh2[0][6]=0x002;
}
void Cdian::OnButton64()
{
// TODO: Add your control notification handler code here
b50.SetState(2);
dzh1[6][1]=0x0bf;
dzh2[1][6]=0x002;
}
void Cdian::OnDoubleclickedButton64()
{
// TODO: Add your control notification handler code here
b50.SetState(0);
dzh1[6][1]=0x0ff;
dzh2[1][6]=0x002;
}
void Cdian::OnButton65()
{
// TODO: Add your control notification handler code here
b51.SetState(2);
dzh1[6][2]=0x0df;
dzh2[2][6]=0x002;
}
void Cdian::OnDoubleclickedButton65()
{
// TODO: Add your control notification handler code here
b51.SetState(0);
dzh1[6][2]=0x0ff;
dzh2[2][6]=0x002;
}
void Cdian::OnButton66()
{
// TODO: Add your control notification handler code here
b52.SetState(2);
dzh1[6][3]=0x0ef;
dzh2[3][6]=0x002;
}
void Cdian::OnDoubleclickedButton66()
{
// TODO: Add your control notification handler code here
b52.SetState(0);
dzh1[6][3]=0x0ff;
dzh2[3][6]=0x002;
}
void Cdian::OnButton67()
{
// TODO: Add your control notification handler code here
b53.SetState(2);
dzh1[6][4]=0x0f7;
dzh2[4][6]=0x002;
}
void Cdian::OnDoubleclickedButton67()
{
// TODO: Add your control notification handler code here
b53.SetState(0);
dzh1[6][4]=0x0ff;
dzh2[4][6]=0x002;
}
void Cdian::OnButton68()
{
// TODO: Add your control notification handler code here
b54.SetState(2);
dzh1[6][5]=0x0fb;
dzh2[5][6]=0x002;
}
void Cdian::OnDoubleclickedButton68()
{
// TODO: Add your control notification handler code here
b54.SetState(0);
dzh1[6][5]=0x0ff;
dzh2[5][6]=0x002;
}
void Cdian::OnButton69()
{
// TODO: Add your control notification handler code here
b55.SetState(2);
dzh1[6][6]=0x0fd;
dzh2[6][6]=0x002;
}
void Cdian::OnDoubleclickedButton69()
{
// TODO: Add your control notification handler code here
b55.SetState(0);
dzh1[6][6]=0x0ff;
dzh2[6][6]=0x002;
}
void Cdian::OnButton70()
{
// TODO: Add your control notification handler code here
b56.SetState(2);
dzh1[6][7]=0x0fe;
dzh2[7][6]=0x002;
}
void Cdian::OnDoubleclickedButton70()
{
// TODO: Add your control notification handler code here
b56.SetState(0);
dzh1[6][7]=0x0ff;
dzh2[7][6]=0x002;
}
void Cdian::OnButton71()
{
// TODO: Add your control notification handler code here
b57.SetState(2);
dzh1[7][0]=0x07f;
dzh2[0][7]=0x001;
}
void Cdian::OnDoubleclickedButton71()
{
// TODO: Add your control notification handler code here
b57.SetState(0);
dzh1[7][0]=0x0ff;
dzh2[0][7]=0x001;
}
void Cdian::OnButton72()
{
// TODO: Add your control notification handler code here
b58.SetState(2);
dzh1[7][1]=0x0bf;
dzh2[1][7]=0x001;
}
void Cdian::OnDoubleclickedButton72()
{
// TODO: Add your control notification handler code here
b58.SetState(0);
dzh1[7][1]=0x0ff;
dzh2[1][7]=0x001;
}
void Cdian::OnButton73()
{
// TODO: Add your control notification handler code here
b59.SetState(2);
dzh1[7][2]=0x0df;
dzh2[2][7]=0x001;
}
void Cdian::OnDoubleclickedButton73()
{
// TODO: Add your control notification handler code here
b59.SetState(0);
dzh1[7][2]=0x0ff;
dzh2[2][7]=0x001;
}
void Cdian::OnButton74()
{
// TODO: Add your control notification handler code here
b60.SetState(2);
dzh1[7][3]=0x0ef;
dzh2[3][7]=0x001;
}
void Cdian::OnDoubleclickedButton74()
{
// TODO: Add your control notification handler code here
b60.SetState(0);
dzh1[7][3]=0x0ff;
dzh2[3][7]=0x001;
}
void Cdian::OnButton75()
{
// TODO: Add your control notification handler code here
b61.SetState(2);
dzh1[7][4]=0x0f7;
dzh2[4][7]=0x001;
}
void Cdian::OnDoubleclickedButton75()
{
// TODO: Add your control notification handler code here
b61.SetState(0);
dzh1[7][4]=0x0ff;
dzh2[4][7]=0x001;
}
void Cdian::OnButton76()
{
// TODO: Add your control notification handler code here
b62.SetState(2);
dzh1[7][5]=0x0fb;
dzh2[5][7]=0x001;
}
void Cdian::OnDoubleclickedButton76()
{
// TODO: Add your control notification handler code here
b62.SetState(0);
dzh1[7][5]=0x0ff;
dzh2[5][7]=0x001;
}
void Cdian::OnButton77()
{
// TODO: Add your control notification handler code here
b63.SetState(2);
dzh1[7][6]=0x0fd;
dzh2[6][7]=0x001;
}
void Cdian::OnDoubleclickedButton77()
{
// TODO: Add your control notification handler code here
b63.SetState(0);
dzh1[7][6]=0x0ff;
dzh2[6][7]=0x001;
}
void Cdian::OnButton78()
{
// TODO: Add your control notification handler code here
b64.SetState(2);
dzh1[7][7]=0x0fe;
dzh2[7][7]=0x001;
}
void Cdian::OnDoubleclickedButton78()
{
// TODO: Add your control notification handler code here
b64.SetState(0);
dzh1[7][7]=0x0ff;
dzh2[7][7]=0x001;
}
void Cdian::OnButton2()
{
// TODO: Add your control notification handler code here
// DeviceIoControl(
// hDevice,
// DIOC_IO_WRITE,
// pci,
// IC_io,
// NULL,
// 0x080,
// NULL,
// NULL);
W_AD->Data=0x80;
W_AD->Address=IC_io;
DeviceIoControl(
hDevice,
IOCTL_IOW,
W_AD,
sizeof(W_AD)+1,
NULL,
0,
&nRet,
NULL);
///SetTimer(1,1,NULL);
mty1();
}
void Cdian::mty1()
{
byte data1;
// while(1)
// {
for(t=0;t<u;t++)
{
//int o;
for(i=0;i<8;i++)
{
for(j=0;j<8;j++)
{
if((dzh1[0][0]==0X07f)&(dzh2[0][0]==0X080)&(dzh1[0][7]!=0x0fe)&(dzh2[7][0]!=0x080))
{
dzh1[0][7]=0x0ff;
// DeviceIoControl( hDevice,
// DIOC_IO_WRITE,
// pci,
// b,
// NULL,
// dzh2[0][7],
// NULL,
// NULL);
W_AD->Data=dzh2[0][7];
W_AD->Address=b;
DeviceIoControl(
hDevice,
IOCTL_IOW,
W_AD,
sizeof(W_AD)+1,
NULL,
0,
&nRet,
NULL);
// DeviceIoControl( hDevice,
// DIOC_IO_WRITE,
// pci,
// a,
// NULL,
// dzh1[7][0],
// NULL,
// NULL);
W_AD->Data=dzh1[7][0];
W_AD->Address=a;
DeviceIoControl(
hDevice,
IOCTL_IOW,
W_AD,
sizeof(W_AD)+1,
NULL,
0,
&nRet,
NULL);
}
// DeviceIoControl( hDevice,
// DIOC_IO_WRITE,
// pci,
// b,
// NULL,
// dzh2[j][i],
// NULL,
// NULL);
W_AD->Data=dzh2[j][i];
W_AD->Address=b;
DeviceIoControl(
hDevice,
IOCTL_IOW,
W_AD,
sizeof(W_AD)+1,
NULL,
0,
&nRet,
NULL);
// DeviceIoControl( hDevice,
// DIOC_IO_WRITE,
// pci,
// a,
// NULL,
// dzh1[i][j],
// NULL,
// NULL);
W_AD->Data=dzh1[i][j];
W_AD->Address=a;
DeviceIoControl(
hDevice,
IOCTL_IOW,
W_AD,
sizeof(W_AD)+1,
NULL,
0,
&nRet,
NULL);
}
}
}
}
void Cdian::OnButton79()
{
// TODO: Add your control notification handler code here
UpdateData(true);
u=m_1*1000;
}
void Cdian::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -