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

📄 dian.cpp

📁 有关树WDM 驱动的编程.里面包含了许多实例,学习硬件的可以参考哦
💻 CPP
📖 第 1 页 / 共 3 页
字号:
							0,
							NULL);
	if (hDevice == INVALID_HANDLE_VALUE)
	{
		AfxMessageBox("请检查板卡和驱动程序");
		CDialog::OnCancel();
		return FALSE;
	}
    W_AD=(Write_AD*)malloc(sizeof(Write_AD));
	 }
    return TRUE;
	}
void Cdian::OnButton1() 
{
	// TODO: Add your control notification handler code here
	b1.SetState(2);
   dzh1[0][0]=0x07f;
   dzh2[0][0]=0x080;
p=true;		
}

void Cdian::OnDoubleclickedButton1() 
{
	// TODO: Add your control notification handler code here
	b1.SetState(0);
dzh1[0][0]=0x0ff;
   dzh2[0][0]=0x080;
p=false;	
}

void Cdian::OnButton17() 
{
	// TODO: Add your control notification handler code here
	b2.SetState(2);
   dzh1[0][1]=0x0bf;
   dzh2[1][0]=0x080;	
}

void Cdian::OnDoubleclickedButton17() 
{
	// TODO: Add your control notification handler code here
		b2.SetState(0);
   dzh1[0][1]=0x0ff;
   dzh2[1][0]=0x080;	
}

void Cdian::OnButton18() 
{
	// TODO: Add your control notification handler code here
	b3.SetState(2);
   dzh1[0][2]=0x0df;
   dzh2[2][0]=0x080;	
}

void Cdian::OnDoubleclickedButton18() 
{
	// TODO: Add your control notification handler code here
		b3.SetState(0);
   dzh1[0][2]=0x0ff;
   dzh2[2][0]=0x080;	
}

void Cdian::OnButton19() 
{
	// TODO: Add your control notification handler code here
	b4.SetState(2);
   dzh1[0][3]=0x0ef;
   dzh2[3][0]=0x080;	
}

void Cdian::OnDoubleclickedButton19() 
{
	// TODO: Add your control notification handler code here
	b4.SetState(0);
   dzh1[0][3]=0x0ff;
   dzh2[3][0]=0x080;	
}

void Cdian::OnButton20() 
{
	// TODO: Add your control notification handler code here
	b5.SetState(2);
   dzh1[0][4]=0x0f7;
   dzh2[4][0]=0x080;
}

void Cdian::OnDoubleclickedButton20() 
{
	// TODO: Add your control notification handler code here
b5.SetState(0);
   dzh1[0][4]=0x0ff;
   dzh2[4][0]=0x080;		
}

void Cdian::OnButton21() 
{
	// TODO: Add your control notification handler code here
	b6.SetState(2);
   dzh1[0][5]=0x0fb;
   dzh2[5][0]=0x080;	
}

void Cdian::OnDoubleclickedButton21() 
{
	// TODO: Add your control notification handler code here
	b6.SetState(0);
   dzh1[0][5]=0x0ff;
   dzh2[5][0]=0x080;
}

void Cdian::OnButton22() 
{
	// TODO: Add your control notification handler code here
b7.SetState(2);
   dzh1[0][6]=0x0fd;
   dzh2[6][0]=0x080;	
}

void Cdian::OnDoubleclickedButton22() 
{
	// TODO: Add your control notification handler code here
	b7.SetState(0);
   dzh1[0][6]=0x0ff;
   dzh2[6][0]=0x080;	
}

void Cdian::OnButton23() 
{
	// TODO: Add your control notification handler code here
b8.SetState(2);
   dzh1[0][7]=0x0fe;
   dzh2[7][0]=0x080;		
}

void Cdian::OnDoubleclickedButton23() 
{
	// TODO: Add your control notification handler code here
	b8.SetState(0);
   dzh1[0][7]=0x0ff;
   dzh2[7][0]=0x080;	
}

void Cdian::OnButton24() 
{
	// TODO: Add your control notification handler code here
	b9.SetState(2);
   dzh1[1][0]=0x07f;
   dzh2[0][1]=0x040;	
}

void Cdian::OnDoubleclickedButton24() 
{
	// TODO: Add your control notification handler code here
	b9.SetState(0);
   dzh1[1][0]=0x0ff;
   dzh2[0][1]=0x040;
}

void Cdian::OnButton25() 
{
	// TODO: Add your control notification handler code here
	b10.SetState(2);
   dzh1[1][1]=0x0bf;
   dzh2[1][1]=0x040;
}

void Cdian::OnDoubleclickedButton25() 
{
	// TODO: Add your control notification handler code here
	b10.SetState(0);
   dzh1[1][1]=0x0ff;
   dzh2[1][1]=0x040;	
}

void Cdian::OnButton26() 
{
	b11.SetState(2);
   dzh1[1][2]=0x0df;
   dzh2[2][1]=0x040;	// TODO: Add your control notification handler code here
	
}

void Cdian::OnDoubleclickedButton26() 
{
	// TODO: Add your control notification handler code here
	b11.SetState(0);
   dzh1[1][2]=0x0ff;
   dzh2[2][1]=0x040;	
}

void Cdian::OnButton27() 
{
	// TODO: Add your control notification handler code here
	b12.SetState(2);
   dzh1[1][3]=0x0ef;
   dzh2[3][1]=0x040;	
}

void Cdian::OnDoubleclickedButton27() 
{
	// TODO: Add your control notification handler code here
	b12.SetState(0);
   dzh1[1][3]=0x0ff;
   dzh2[3][1]=0x040;
}

void Cdian::OnButton28() 
{
	// TODO: Add your control notification handler code here
b13.SetState(2);
   dzh1[1][4]=0x0f7;
   dzh2[4][1]=0x040;		
}

void Cdian::OnDoubleclickedButton28() 
{
	// TODO: Add your control notification handler code here
	b13.SetState(0);
   dzh1[1][4]=0x0ff;
   dzh2[4][1]=0x040;	
}

void Cdian::OnButton29() 
{
	// TODO: Add your control notification handler code here
	b14.SetState(2);
   dzh1[1][5]=0x0fb;
   dzh2[5][1]=0x040;	
}

void Cdian::OnDoubleclickedButton29() 
{
	// TODO: Add your control notification handler code here
b14.SetState(0);
   dzh1[1][5]=0x0ff;
   dzh2[5][1]=0x040;	
}

void Cdian::OnButton30() 
{
	// TODO: Add your control notification handler code here
b15.SetState(2);
   dzh1[1][6]=0x0fd;
   dzh2[6][1]=0x040;		
}

void Cdian::OnDoubleclickedButton30() 
{
	// TODO: Add your control notification handler code here
b15.SetState(0);
   dzh1[1][6]=0x0ff;
   dzh2[6][1]=0x040;		
}

void Cdian::OnButton31() 
{
	// TODO: Add your control notification handler code here
	b16.SetState(2);
   dzh1[1][7]=0x0fe;
   dzh2[7][1]=0x040;	
}

void Cdian::OnDoubleclickedButton31() 
{
	// TODO: Add your control notification handler code here
	b16.SetState(0);
   dzh1[1][7]=0x0ff;
   dzh2[7][1]=0x040;	
}

void Cdian::OnButton32() 
{
	// TODO: Add your control notification handler code here
	b17.SetState(2);
   dzh1[2][0]=0x07f;
   dzh2[0][2]=0x020;	
}

void Cdian::OnDoubleclickedButton32() 
{
	// TODO: Add your control notification handler code here
	b17.SetState(0);
   dzh1[2][0]=0x0ff;
   dzh2[0][2]=0x020;
}

void Cdian::OnButton33() 
{
	// TODO: Add your control notification handler code here
	b18.SetState(2);
   dzh1[2][1]=0x0bf;
   dzh2[1][2]=0x020;
}

void Cdian::OnDoubleclickedButton33() 
{
	// TODO: Add your control notification handler code here
	b18.SetState(0);
   dzh1[2][1]=0x0ff;
   dzh2[1][2]=0x020;	
}

void Cdian::OnButton34() 
{
	// TODO: Add your control notification handler code here
	b19.SetState(2);
   dzh1[2][2]=0x0df;
   dzh2[2][2]=0x020;	
}

void Cdian::OnDoubleclickedButton34() 
{
	// TODO: Add your control notification handler code here
	b19.SetState(0);
   dzh1[2][2]=0x0ff;
   dzh2[2][2]=0x020;	
}

void Cdian::OnButton35() 
{
	// TODO: Add your control notification handler code here
	b20.SetState(2);
   dzh1[2][3]=0x0ef;
   dzh2[3][2]=0x020;	
}

void Cdian::OnDoubleclickedButton35() 
{
	// TODO: Add your control notification handler code here
	b20.SetState(0);
   dzh1[2][3]=0x0ff;
   dzh2[3][2]=0x020;	
}

void Cdian::OnButton36() 
{
	// TODO: Add your control notification handler code here
	b21.SetState(2);
   dzh1[2][4]=0x0f7;
   dzh2[4][2]=0x020;	
}

void Cdian::OnDoubleclickedButton36() 
{
	// TODO: Add your control notification handler code here
	b21.SetState(0);
   dzh1[2][4]=0x0ff;
   dzh2[4][2]=0x020;	
}

void Cdian::OnButton37() 
{
	// TODO: Add your control notification handler code here
	b22.SetState(2);
   dzh1[2][5]=0x0fb;
   dzh2[5][2]=0x020;		
}

void Cdian::OnDoubleclickedButton37() 
{
	// TODO: Add your control notification handler code here
	b22.SetState(0);
   dzh1[2][5]=0x0ff;
   dzh2[5][2]=0x020;
}

void Cdian::OnButton38() 
{
	// TODO: Add your control notification handler code here
	b23.SetState(2);
   dzh1[2][6]=0x0fd;
   dzh2[6][2]=0x020;	
}

void Cdian::OnDoubleclickedButton38() 
{
	// TODO: Add your control notification handler code here
	b23.SetState(0);
   dzh1[2][6]=0x0ff;
   dzh2[6][2]=0x020;
}

void Cdian::OnButton39() 
{
	// TODO: Add your control notification handler code here
	b24.SetState(2);
   dzh1[2][7]=0x0fe;
   dzh2[7][2]=0x020;	
}

void Cdian::OnDoubleclickedButton39() 
{
	// TODO: Add your control notification handler code here
	b24.SetState(0);
   dzh1[2][7]=0x0ff;
   dzh2[7][2]=0x020;
}

void Cdian::OnButton40() 
{
	// TODO: Add your control notification handler code here
	b25.SetState(2);
   dzh1[3][0]=0x07f;
   dzh2[0][3]=0x010;	
}

void Cdian::OnDoubleclickedButton40() 
{
	// TODO: Add your control notification handler code here
	b25.SetState(0);
   dzh1[3][0]=0x0ff;
   dzh2[0][3]=0x010;	
}

void Cdian::OnButton41() 
{
	// TODO: Add your control notification handler code here
	b26.SetState(2);
   dzh1[3][1]=0x0bf;
   dzh2[1][3]=0x010;		

}

void Cdian::OnDoubleclickedButton41() 
{
	// TODO: Add your control notification handler code here
	b26.SetState(0);
   dzh1[3][1]=0x0ff;
   dzh2[1][3]=0x010;
}

void Cdian::OnButton42() 
{
	// TODO: Add your control notification handler code here
	b27.SetState(2);
   dzh1[3][2]=0x0df;
   dzh2[2][3]=0x010;
}

void Cdian::OnDoubleclickedButton42() 
{
	// TODO: Add your control notification handler code here
b27.SetState(0);
   dzh1[3][2]=0x0ff;
   dzh2[2][3]=0x010;		
}

void Cdian::OnButton43() 
{
	// TODO: Add your control notification handler code here
	b28.SetState(2);
   dzh1[3][3]=0x0ef;
   dzh2[3][3]=0x010;	
}

void Cdian::OnDoubleclickedButton43() 
{
	// TODO: Add your control notification handler code here
	b28.SetState(0);
   dzh1[3][3]=0x0ff;
   dzh2[3][3]=0x010;	
}

void Cdian::OnButton44() 
{
	// TODO: Add your control notification handler code here
	b29.SetState(2);
   dzh1[3][4]=0x0f7;
   dzh2[4][3]=0x010;	
}

void Cdian::OnDoubleclickedButton44() 
{
	// TODO: Add your control notification handler code here
	b29.SetState(0);
   dzh1[3][4]=0x0ff;
   dzh2[4][3]=0x010;
}

void Cdian::OnButton45() 
{
	// TODO: Add your control notification handler code here
	b30.SetState(2);
   dzh1[3][5]=0x0fb;
   dzh2[5][3]=0x010;	
}

void Cdian::OnDoubleclickedButton45() 
{
	// TODO: Add your control notification handler code here
	b30.SetState(0);
   dzh1[3][5]=0x0ff;
   dzh2[5][3]=0x010;
}

void Cdian::OnButton46() 
{
	// TODO: Add your control notification handler code here
b31.SetState(2);
   dzh1[3][6]=0x0fd;
   dzh2[6][3]=0x010;	
}

void Cdian::OnDoubleclickedButton46() 
{
	// TODO: Add your control notification handler code here
	b31.SetState(0);
   dzh1[3][6]=0x0ff;
   dzh2[6][3]=0x010;	
}

void Cdian::OnButton47() 
{
	// TODO: Add your control notification handler code here
	b32.SetState(2);
   dzh1[3][7]=0x0fe;
   dzh2[7][3]=0x010;
}

void Cdian::OnDoubleclickedButton47() 
{
	// TODO: Add your control notification handler code here
	b32.SetState(0);
   dzh1[3][7]=0x0ff;
   dzh2[7][3]=0x010;	
}

void Cdian::OnButton7() 
{
	// TODO: Add your control notification handler code here
	b33.SetState(2);
   dzh1[4][0]=0x07f;
   dzh2[0][4]=0x008;	
}

void Cdian::OnDoubleclickedButton7() 
{
	// TODO: Add your control notification handler code here
	b33.SetState(0);
   dzh1[4][0]=0x0Ff;
   dzh2[0][4]=0x008;
}


void Cdian::OnButton48() 
{
	// TODO: Add your control notification handler code here
b34.SetState(2);
   dzh1[4][1]=0x0bf;
   dzh2[1][4]=0x008;	
}


void Cdian::OnDoubleclickedButton48() 
{
	// TODO: Add your control notification handler code here
	b34.SetState(0);
   dzh1[4][1]=0x0ff;
   dzh2[1][4]=0x008;
}

void Cdian::OnButton49() 
{
	// TODO: Add your control notification handler code here
	 b35.SetState(2);
   dzh1[4][2]=0x0df;
   dzh2[2][4]=0x008;
}

void Cdian::OnDoubleclickedButton49() 
{
	// TODO: Add your control notification handler code here
	b35.SetState(0);
   dzh1[4][2]=0x0ff;
   dzh2[2][4]=0x008;
}

void Cdian::OnButton50() 
{
	// TODO: Add your control notification handler code here
b36.SetState(2);
   dzh1[4][3]=0x0ef;
   dzh2[3][4]=0x008;		
}

void Cdian::OnDoubleclickedButton50() 
{
	// TODO: Add your control notification handler code here
b36.SetState(0);

⌨️ 快捷键说明

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