📄 mode.cpp
字号:
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG23)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG24)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG25)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG26)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG27_M))
{
CString temp1;
if(index2==0)
{
m_static_DG21.GetWindowText(temp1);
if(temp1=="是")
m_static_DG21.SetWindowText("否");
else
m_static_DG21.SetWindowText("是");
m_static_DG21.RedrawWindow();
return TRUE;
}
if(index2==1)
{
m_static_DG22.GetWindowText(temp1);
if(temp1=="是")
m_static_DG22.SetWindowText("否");
else
m_static_DG22.SetWindowText("是");
m_static_DG22.RedrawWindow();
return TRUE;
}
if(index2==2)
{
m_static_DG23.GetWindowText(temp1);
if(temp1=="是")
m_static_DG23.SetWindowText("否");
else
m_static_DG23.SetWindowText("是");
m_static_DG23.RedrawWindow();
return TRUE;
}
if(index2==3)
{
m_static_DG24.GetWindowText(temp1);
if(temp1=="是")
m_static_DG24.SetWindowText("否");
else
m_static_DG24.SetWindowText("是");
m_static_DG24.RedrawWindow();
return TRUE;
}
if(index2==4)
{
m_static_DG25.GetWindowText(temp1);
if(temp1=="是")
m_static_DG25.SetWindowText("否");
else
m_static_DG25.SetWindowText("是");
m_static_DG25.RedrawWindow();
return TRUE;
}
if(index2==5)
{
m_static_DG26.GetWindowText(temp1);
if(temp1=="200%")
m_static_DG26.SetWindowText("160%");
else if(temp1=="160%")
m_static_DG26.SetWindowText("133%");
else if(temp1=="133%")
m_static_DG26.SetWindowText("114%");
else if(temp1=="114%")
m_static_DG26.SetWindowText("100%");
else if(temp1=="100%")
m_static_DG26.SetWindowText("93%");
else if(temp1=="93%")
m_static_DG26.SetWindowText("87%");
else if(temp1=="87%")
m_static_DG26.SetWindowText("81%");
else if(temp1=="81%")
m_static_DG26.SetWindowText("75%");
else
m_static_DG26.SetWindowText("200%");
m_static_DG26.RedrawWindow();
return TRUE;
}
if(index2==6)
{
m_static_DG27_M.GetWindowText(temp1);
if(temp1=="10")
m_static_DG27_M.SetWindowText("20");
else if(temp1=="20")
m_static_DG27_M.SetWindowText("30");
else if(temp1=="30")
m_static_DG27_M.SetWindowText("40");
else if(temp1=="40")
m_static_DG27_M.SetWindowText("50");
else if(temp1=="50")
m_static_DG27_M.SetWindowText("60");
else if(temp1=="60")
m_static_DG27_M.SetWindowText("70");
else if(temp1=="70")
m_static_DG27_M.SetWindowText("80");
else if(temp1=="80")
m_static_DG27_M.SetWindowText("90");
else if(temp1=="90")
m_static_DG27_M.SetWindowText("100");
else
m_static_DG27_M.SetWindowText("10");
m_static_DG27_M.RedrawWindow();
return TRUE;
}
}
if(CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG31)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG32)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG33)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG34)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG35)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG36)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG37_M))
{
CString temp1;
if(index3==0)
{
m_static_DG31.GetWindowText(temp1);
if(temp1=="是")
m_static_DG31.SetWindowText("否");
else
m_static_DG31.SetWindowText("是");
m_static_DG31.RedrawWindow();
return TRUE;
}
if(index3==1)
{
m_static_DG32.GetWindowText(temp1);
if(temp1=="是")
m_static_DG32.SetWindowText("否");
else
m_static_DG32.SetWindowText("是");
m_static_DG32.RedrawWindow();
return TRUE;
}
if(index3==2)
{
m_static_DG33.GetWindowText(temp1);
if(temp1=="是")
m_static_DG33.SetWindowText("否");
else
m_static_DG33.SetWindowText("是");
m_static_DG33.RedrawWindow();
return TRUE;
}
if(index3==3)
{
m_static_DG34.GetWindowText(temp1);
if(temp1=="是")
m_static_DG34.SetWindowText("否");
else
m_static_DG34.SetWindowText("是");
m_static_DG34.RedrawWindow();
return TRUE;
}
if(index3==4)
{
m_static_DG35.GetWindowText(temp1);
if(temp1=="是")
m_static_DG35.SetWindowText("否");
else
m_static_DG35.SetWindowText("是");
m_static_DG35.RedrawWindow();
return TRUE;
}
if(index3==5)
{
m_static_DG36.GetWindowText(temp1);
if(temp1=="200%")
m_static_DG36.SetWindowText("160%");
else if(temp1=="160%")
m_static_DG36.SetWindowText("133%");
else if(temp1=="133%")
m_static_DG36.SetWindowText("114%");
else if(temp1=="114%")
m_static_DG36.SetWindowText("100%");
else if(temp1=="100%")
m_static_DG36.SetWindowText("93%");
else if(temp1=="93%")
m_static_DG36.SetWindowText("87%");
else if(temp1=="87%")
m_static_DG36.SetWindowText("81%");
else if(temp1=="81%")
m_static_DG36.SetWindowText("75%");
else
m_static_DG36.SetWindowText("200%");
m_static_DG36.RedrawWindow();
return TRUE;
}
if(index3==6)
{
m_static_DG37_M.GetWindowText(temp1);
if(temp1=="10")
m_static_DG37_M.SetWindowText("20");
else if(temp1=="20")
m_static_DG37_M.SetWindowText("30");
else if(temp1=="30")
m_static_DG37_M.SetWindowText("40");
else if(temp1=="40")
m_static_DG37_M.SetWindowText("50");
else if(temp1=="50")
m_static_DG37_M.SetWindowText("60");
else if(temp1=="60")
m_static_DG37_M.SetWindowText("70");
else if(temp1=="70")
m_static_DG37_M.SetWindowText("80");
else if(temp1=="80")
m_static_DG37_M.SetWindowText("90");
else if(temp1=="90")
m_static_DG37_M.SetWindowText("100");
else
m_static_DG37_M.SetWindowText("10");
m_static_DG37_M.RedrawWindow();
return TRUE;
}
}
if(CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG41)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG42)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG43)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG44)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG45)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG46)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG47_M))
{
CString temp1;
if(index4==0)
{
m_static_DG41.GetWindowText(temp1);
if(temp1=="是")
m_static_DG41.SetWindowText("否");
else
m_static_DG41.SetWindowText("是");
m_static_DG41.RedrawWindow();
return TRUE;
}
if(index4==1)
{
m_static_DG42.GetWindowText(temp1);
if(temp1=="是")
m_static_DG42.SetWindowText("否");
else
m_static_DG42.SetWindowText("是");
m_static_DG42.RedrawWindow();
return TRUE;
}
if(index4==2)
{
m_static_DG43.GetWindowText(temp1);
if(temp1=="是")
m_static_DG43.SetWindowText("否");
else
m_static_DG43.SetWindowText("是");
m_static_DG43.RedrawWindow();
return TRUE;
}
if(index4==3)
{
m_static_DG44.GetWindowText(temp1);
if(temp1=="是")
m_static_DG44.SetWindowText("否");
else
m_static_DG44.SetWindowText("是");
m_static_DG44.RedrawWindow();
return TRUE;
}
if(index4==4)
{
m_static_DG45.GetWindowText(temp1);
if(temp1=="是")
m_static_DG45.SetWindowText("否");
else
m_static_DG45.SetWindowText("是");
m_static_DG45.RedrawWindow();
return TRUE;
}
if(index4==5)
{
m_static_DG46.GetWindowText(temp1);
if(temp1=="200%")
m_static_DG46.SetWindowText("160%");
else if(temp1=="160%")
m_static_DG46.SetWindowText("133%");
else if(temp1=="133%")
m_static_DG46.SetWindowText("114%");
else if(temp1=="114%")
m_static_DG46.SetWindowText("100%");
else if(temp1=="100%")
m_static_DG46.SetWindowText("93%");
else if(temp1=="93%")
m_static_DG46.SetWindowText("87%");
else if(temp1=="87%")
m_static_DG46.SetWindowText("81%");
else if(temp1=="81%")
m_static_DG46.SetWindowText("75%");
else
m_static_DG46.SetWindowText("200%");
m_static_DG46.RedrawWindow();
return TRUE;
}
if(index4==6)
{
m_static_DG47_M.GetWindowText(temp1);
if(temp1=="10")
m_static_DG47_M.SetWindowText("20");
else if(temp1=="20")
m_static_DG47_M.SetWindowText("30");
else if(temp1=="30")
m_static_DG47_M.SetWindowText("40");
else if(temp1=="40")
m_static_DG47_M.SetWindowText("50");
else if(temp1=="50")
m_static_DG47_M.SetWindowText("60");
else if(temp1=="60")
m_static_DG47_M.SetWindowText("70");
else if(temp1=="70")
m_static_DG47_M.SetWindowText("80");
else if(temp1=="80")
m_static_DG47_M.SetWindowText("90");
else if(temp1=="90")
m_static_DG47_M.SetWindowText("100");
else
m_static_DG47_M.SetWindowText("10");
m_static_DG47_M.RedrawWindow();
return TRUE;
}
}
if(CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG51)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG52)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG53)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG54)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG55)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG56)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG57_M))
{
CString temp1;
if(index5==0)
{
m_static_DG51.GetWindowText(temp1);
if(temp1=="是")
m_static_DG51.SetWindowText("否");
else
m_static_DG51.SetWindowText("是");
m_static_DG51.RedrawWindow();
return TRUE;
}
if(index5==1)
{
m_static_DG52.GetWindowText(temp1);
if(temp1=="是")
m_static_DG52.SetWindowText("否");
else
m_static_DG52.SetWindowText("是");
m_static_DG52.RedrawWindow();
return TRUE;
}
if(index5==2)
{
m_static_DG53.GetWindowText(temp1);
if(temp1=="是")
m_static_DG53.SetWindowText("否");
else
m_static_DG53.SetWindowText("是");
m_static_DG53.RedrawWindow();
return TRUE;
}
if(index5==3)
{
m_static_DG54.GetWindowText(temp1);
if(temp1=="是")
m_static_DG54.SetWindowText("否");
else
m_static_DG54.SetWindowText("是");
m_static_DG14.RedrawWindow();
return TRUE;
}
if(index5==4)
{
m_static_DG55.GetWindowText(temp1);
if(temp1=="是")
m_static_DG55.SetWindowText("否");
else
m_static_DG55.SetWindowText("是");
m_static_DG55.RedrawWindow();
return TRUE;
}
if(index5==5)
{
m_static_DG56.GetWindowText(temp1);
if(temp1=="200%")
m_static_DG56.SetWindowText("160%");
else if(temp1=="160%")
m_static_DG56.SetWindowText("133%");
else if(temp1=="133%")
m_static_DG56.SetWindowText("114%");
else if(temp1=="114%")
m_static_DG56.SetWindowText("100%");
else if(temp1=="100%")
m_static_DG56.SetWindowText("93%");
else if(temp1=="93%")
m_static_DG56.SetWindowText("87%");
else if(temp1=="87%")
m_static_DG56.SetWindowText("81%");
else if(temp1=="81%")
m_static_DG56.SetWindowText("75%");
else
m_static_DG56.SetWindowText("200%");
m_static_DG56.RedrawWindow();
return TRUE;
}
if(index5==6)
{
m_static_DG57_M.GetWindowText(temp1);
if(temp1=="10")
m_static_DG57_M.SetWindowText("20");
else if(temp1=="20")
m_static_DG57_M.SetWindowText("30");
else if(temp1=="30")
m_static_DG57_M.SetWindowText("40");
else if(temp1=="40")
m_static_DG57_M.SetWindowText("50");
else if(temp1=="50")
m_static_DG57_M.SetWindowText("60");
else if(temp1=="60")
m_static_DG57_M.SetWindowText("70");
else if(temp1=="70")
m_static_DG57_M.SetWindowText("80");
else if(temp1=="80")
m_static_DG57_M.SetWindowText("90");
else if(temp1=="90")
m_static_DG57_M.SetWindowText("100");
else
m_static_DG57_M.SetWindowText("10");
m_static_DG57_M.RedrawWindow();
return TRUE;
}
}
if(CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG61)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG62)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG63)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG64)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG65)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG66)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG67_M))
{
CString temp1;
if(index6==0)
{
m_static_DG61.GetWindowText(temp1);
if(temp1=="是")
m_static_DG61.SetWindowText("否");
else
m_static_DG61.SetWindowText("是");
m_static_DG61.RedrawWindow();
return TRUE;
}
if(index6==1)
{
m_static_DG62.GetWindowText(temp1);
if(temp1=="是")
m_static_DG62.SetWindowText("否");
else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -