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

📄 mode.cpp

📁 机械手IPC控制器伺服运动程序
💻 CPP
📖 第 1 页 / 共 2 页
字号:
	((CButton *)GetDlgItem(IDC_RADIO15))->SetCheck(0);
}
void CMode::OnRadio14() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO13))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO14))->SetCheck(1);
	((CButton *)GetDlgItem(IDC_RADIO15))->SetCheck(0);
}
void CMode::OnRadio15() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO13))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO14))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO15))->SetCheck(1);
}

/*
void CMode::OnRadio16() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO16))->SetCheck(1);
    ((CButton *)GetDlgItem(IDC_RADIO17))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO18))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO19))->SetCheck(0);
}
void CMode::OnRadio17() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO16))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO17))->SetCheck(1);
	((CButton *)GetDlgItem(IDC_RADIO18))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO19))->SetCheck(0);
}
void CMode::OnRadio18() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO16))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO17))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO18))->SetCheck(1);
	((CButton *)GetDlgItem(IDC_RADIO19))->SetCheck(0);
}
void CMode::OnRadio19() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO16))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO17))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO18))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO19))->SetCheck(1);
}
*/

// Vac3 Check
void CMode::OnRadio20() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO20))->SetCheck(1);
    ((CButton *)GetDlgItem(IDC_RADIO21))->SetCheck(0);
}
void CMode::OnRadio21() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO20))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO21))->SetCheck(1);
}


void CMode::OnRadio26() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO26))->SetCheck(1);
    ((CButton *)GetDlgItem(IDC_RADIO27))->SetCheck(0);
}
void CMode::OnRadio27() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO26))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO27))->SetCheck(1);
}


void CMode::OnRadio22() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO22))->SetCheck(1);
    ((CButton *)GetDlgItem(IDC_RADIO23))->SetCheck(0);
}
void CMode::OnRadio23() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO22))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO23))->SetCheck(1);
}

// Hold2 Check
void CMode::OnRadio28() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO28))->SetCheck(1);
    ((CButton *)GetDlgItem(IDC_RADIO29))->SetCheck(0);
}
void CMode::OnRadio29() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO28))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO29))->SetCheck(1);
}


void CMode::OnRadio24() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO24))->SetCheck(1);
    ((CButton *)GetDlgItem(IDC_RADIO25))->SetCheck(0);
}
void CMode::OnRadio25() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO24))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO25))->SetCheck(1);
}

//void CMode::OnRadio30() 
//{
	// TODO: Add your control notification handler code here
//	((CButton *)GetDlgItem(IDC_RADIO30))->SetCheck(1);
//    ((CButton *)GetDlgItem(IDC_RADIO31))->SetCheck(0);
//	((CButton *)GetDlgItem(IDC_RADIO32))->SetCheck(0);
//}

void CMode::OnRadio31() 
{
	// TODO: Add your control notification handler code here
//	((CButton *)GetDlgItem(IDC_RADIO30))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO31))->SetCheck(1);
	((CButton *)GetDlgItem(IDC_RADIO32))->SetCheck(0);
}
void CMode::OnRadio32() 
{
	// TODO: Add your control notification handler code here
//	((CButton *)GetDlgItem(IDC_RADIO30))->SetCheck(0);
    ((CButton *)GetDlgItem(IDC_RADIO31))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO32))->SetCheck(1);
}
// Timer
void CMode::OnButton2() 
{
	// TODO: Add your control notification handler code here
	CMain * main=(CMain *)GetParent();
	ShowWindow(FALSE);
	main->dlgmodetimer->ShowWindow(TRUE);
}
// Counter
void CMode::OnButton41() 
{
	// TODO: Add your control notification handler code here
	CMain * main=(CMain *)GetParent();
	ShowWindow(FALSE);
	main->dlgmodecount->ShowWindow(TRUE);
}

// Stack1
void CMode::OnRadio33() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO33))->SetCheck(1);
	((CButton *)GetDlgItem(IDC_RADIO34))->SetCheck(0);
//	GetDlgItem(IDC_BUTTON5)->EnableWindow(TRUE);

//	UpdateData();
//    if(m_radio33==0) m_radio33=1;
//    else             m_radio33=0;
//	UpdateData(FALSE);
}
void CMode::OnRadio34() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO33))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO34))->SetCheck(1);
//	GetDlgItem(IDC_BUTTON5)->EnableWindow(FALSE);
//    if(m_radio34==0) m_radio34=1;
//    else             m_radio34=0;
//	UpdateData(FALSE);
}


void CMode::OnRadio35() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO35))->SetCheck(1);
	((CButton *)GetDlgItem(IDC_RADIO36))->SetCheck(0);
//	GetDlgItem(IDC_BUTTON3)->EnableWindow(TRUE);
}
void CMode::OnRadio36() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO35))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO36))->SetCheck(1);
//	GetDlgItem(IDC_BUTTON3)->EnableWindow(FALSE);
}

void CMode::OnButton5() 
{
	// TODO: Add your control notification handler code here
	ShowWindow(FALSE);
	CMain * main=(CMain *)GetParent();
	main->dlgfmstackup->ShowWindow(TRUE);
}

void CMode::OnButton3() 
{
	// TODO: Add your control notification handler code here
	ShowWindow(FALSE);
	CMain * main=(CMain *)GetParent();
	main->dlgfmstackdown->ShowWindow(TRUE);
}

// Vac1 Check
void CMode::OnRadio37() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO38))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO37))->SetCheck(1);
}
void CMode::OnRadio38() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO37))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO38))->SetCheck(1);
}

// Hold1 Check
//void CMode::OnRadio39() 
//{
	// TODO: Add your control notification handler code here
//	((CButton *)GetDlgItem(IDC_RADIO40))->SetCheck(0);
//	((CButton *)GetDlgItem(IDC_RADIO39))->SetCheck(1);
//}
//void CMode::OnRadio40() 
//{
	// TODO: Add your control notification handler code here
//	((CButton *)GetDlgItem(IDC_RADIO39))->SetCheck(0);
//	((CButton *)GetDlgItem(IDC_RADIO40))->SetCheck(1);
//}

// Pin Check
void CMode::OnRadio41() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO42))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO41))->SetCheck(1);
}
void CMode::OnRadio42() 
{
	// TODO: Add your control notification handler code here
	((CButton *)GetDlgItem(IDC_RADIO41))->SetCheck(0);
	((CButton *)GetDlgItem(IDC_RADIO42))->SetCheck(1);
}


void CMode::OnButton4() 
{
	// TODO: Add your control notification handler code here
	ShowWindow(FALSE);
	CMain * main=(CMain *)GetParent();
	main->dlgmodespeed->ShowWindow(TRUE);
}

void CMode::OnShowWindow(BOOL bShow, UINT nStatus) 
{
	CDialog::OnShowWindow(bShow, nStatus);
	
	// TODO: Add your message handler code here
	if(bShow==1) {
		CMain * main=(CMain *)GetParent();
		main->dlgcur=this;
//		if(!m_radio34)
//			GetDlgItem(IDC_BUTTON5)->EnableWindow(FALSE);
//		else
//			GetDlgItem(IDC_BUTTON5)->EnableWindow(TRUE);
//		if(!m_radio36)
//			GetDlgItem(IDC_BUTTON3)->EnableWindow(FALSE);
//		else
//			GetDlgItem(IDC_BUTTON3)->EnableWindow(TRUE);
	}
}



⌨️ 快捷键说明

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