📄 mode.cpp
字号:
m_static_DG146.SetWindowText("114%");
else if(temp1=="1144%")
m_static_DG16.SetWindowText("100%");
else if(temp1=="100%")
m_static_DG146.SetWindowText("93%");
else if(temp1=="93%")
m_static_DG146.SetWindowText("87%");
else if(temp1=="87%")
m_static_DG146.SetWindowText("81%");
else if(temp1=="81%")
m_static_DG146.SetWindowText("75%");
else
m_static_DG146.SetWindowText("200%");
m_static_DG146.RedrawWindow();
return TRUE;
}
if(index14==6)
{
m_static_DG147_M.GetWindowText(temp1);
if(temp1=="10")
m_static_DG147_M.SetWindowText("20");
else if(temp1=="20")
m_static_DG147_M.SetWindowText("30");
else if(temp1=="30")
m_static_DG147_M.SetWindowText("40");
else if(temp1=="40")
m_static_DG147_M.SetWindowText("50");
else if(temp1=="50")
m_static_DG147_M.SetWindowText("60");
else if(temp1=="60")
m_static_DG147_M.SetWindowText("70");
else if(temp1=="70")
m_static_DG147_M.SetWindowText("80");
else if(temp1=="80")
m_static_DG147_M.SetWindowText("90");
else if(temp1=="90")
m_static_DG147_M.SetWindowText("100");
else
m_static_DG147_M.SetWindowText("10");
m_static_DG147_M.RedrawWindow();
return TRUE;
}
}
if(CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG151)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG152)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG153)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG154)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG155)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG156)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG157_M))
{
CString temp1;
if(index15==0)
{
m_static_DG151.GetWindowText(temp1);
if(temp1=="是")
m_static_DG151.SetWindowText("否");
else
m_static_DG151.SetWindowText("是");
m_static_DG151.RedrawWindow();
return TRUE;
}
if(index15==1)
{
m_static_DG152.GetWindowText(temp1);
if(temp1=="是")
m_static_DG152.SetWindowText("否");
else
m_static_DG152.SetWindowText("是");
m_static_DG152.RedrawWindow();
return TRUE;
}
if(index15==2)
{
m_static_DG153.GetWindowText(temp1);
if(temp1=="是")
m_static_DG153.SetWindowText("否");
else
m_static_DG153.SetWindowText("是");
m_static_DG153.RedrawWindow();
return TRUE;
}
if(index15==3)
{
m_static_DG154.GetWindowText(temp1);
if(temp1=="是")
m_static_DG154.SetWindowText("否");
else
m_static_DG154.SetWindowText("是");
m_static_DG154.RedrawWindow();
return TRUE;
}
if(index15==4)
{
m_static_DG155.GetWindowText(temp1);
if(temp1=="是")
m_static_DG155.SetWindowText("否");
else
m_static_DG155.SetWindowText("是");
m_static_DG155.RedrawWindow();
return TRUE;
}
if(index15==5)
{
m_static_DG156.GetWindowText(temp1);
if(temp1=="200%")
m_static_DG156.SetWindowText("160%");
else if(temp1=="160%")
m_static_DG156.SetWindowText("133%");
else if(temp1=="133%")
m_static_DG156.SetWindowText("114%");
else if(temp1=="114%")
m_static_DG156.SetWindowText("100%");
else if(temp1=="100%")
m_static_DG156.SetWindowText("93%");
else if(temp1=="93%")
m_static_DG156.SetWindowText("87%");
else if(temp1=="87%")
m_static_DG156.SetWindowText("81%");
else if(temp1=="81%")
m_static_DG156.SetWindowText("75%");
else
m_static_DG156.SetWindowText("200%");
m_static_DG156.RedrawWindow();
return TRUE;
}
if(index15==6)
{
m_static_DG157_M.GetWindowText(temp1);
if(temp1=="10")
m_static_DG157_M.SetWindowText("20");
else if(temp1=="20")
m_static_DG157_M.SetWindowText("30");
else if(temp1=="30")
m_static_DG157_M.SetWindowText("40");
else if(temp1=="40")
m_static_DG157_M.SetWindowText("50");
else if(temp1=="50")
m_static_DG157_M.SetWindowText("60");
else if(temp1=="60")
m_static_DG157_M.SetWindowText("70");
else if(temp1=="70")
m_static_DG157_M.SetWindowText("80");
else if(temp1=="80")
m_static_DG157_M.SetWindowText("90");
else if(temp1=="90")
m_static_DG157_M.SetWindowText("100");
else
m_static_DG157_M.SetWindowText("10");
m_static_DG157_M.RedrawWindow();
return TRUE;
}
}
if(CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG161)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG162)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG163)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG164)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG165)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG166)||
CMODE::GetFocus() == GetDlgItem(IDC_STATIC_DG167_M))
{
CString temp1;
if(index16==0)
{
m_static_DG161.GetWindowText(temp1);
if(temp1=="是")
m_static_DG161.SetWindowText("否");
else
m_static_DG161.SetWindowText("是");
m_static_DG161.RedrawWindow();
return TRUE;
}
if(index16==1)
{
m_static_DG162.GetWindowText(temp1);
if(temp1=="是")
m_static_DG162.SetWindowText("否");
else
m_static_DG162.SetWindowText("是");
m_static_DG162.RedrawWindow();
return TRUE;
}
if(index16==2)
{
m_static_DG163.GetWindowText(temp1);
if(temp1=="是")
m_static_DG163.SetWindowText("否");
else
m_static_DG163.SetWindowText("是");
m_static_DG163.RedrawWindow();
return TRUE;
}
if(index16==3)
{
m_static_DG164.GetWindowText(temp1);
if(temp1=="是")
m_static_DG164.SetWindowText("否");
else
m_static_DG164.SetWindowText("是");
m_static_DG164.RedrawWindow();
return TRUE;
}
if(index16==4)
{
m_static_DG165.GetWindowText(temp1);
if(temp1=="是")
m_static_DG165.SetWindowText("否");
else
m_static_DG165.SetWindowText("是");
m_static_DG165.RedrawWindow();
return TRUE;
}
if(index16==5)
{
m_static_DG166.GetWindowText(temp1);
if(temp1=="200%")
m_static_DG166.SetWindowText("160%");
else if(temp1=="160%")
m_static_DG166.SetWindowText("133%");
else if(temp1=="133%")
m_static_DG166.SetWindowText("114%");
else if(temp1=="114%")
m_static_DG166.SetWindowText("100%");
else if(temp1=="100%")
m_static_DG166.SetWindowText("93%");
else if(temp1=="93%")
m_static_DG166.SetWindowText("87%");
else if(temp1=="87%")
m_static_DG166.SetWindowText("81%");
else if(temp1=="81%")
m_static_DG166.SetWindowText("75%");
else
m_static_DG166.SetWindowText("200%");
m_static_DG166.RedrawWindow();
return TRUE;
}
if(index16==6)
{
m_static_DG167_M.GetWindowText(temp1);
if(temp1=="10")
m_static_DG167_M.SetWindowText("20");
else if(temp1=="20")
m_static_DG167_M.SetWindowText("30");
else if(temp1=="30")
m_static_DG167_M.SetWindowText("40");
else if(temp1=="40")
m_static_DG167_M.SetWindowText("50");
else if(temp1=="50")
m_static_DG167_M.SetWindowText("60");
else if(temp1=="60")
m_static_DG167_M.SetWindowText("70");
else if(temp1=="70")
m_static_DG167_M.SetWindowText("80");
else if(temp1=="80")
m_static_DG167_M.SetWindowText("90");
else if(temp1=="90")
m_static_DG167_M.SetWindowText("100");
else
m_static_DG167_M.SetWindowText("10");
m_static_DG167_M.RedrawWindow();
return TRUE;
}
}
}
//上移动
if(pMsg->message==WM_KEYDOWN && (pMsg->wParam==VK_UP))
{
//焦点在标头的时候
if(CMODE::GetFocus() == GetDlgItem(IDC_STATIC_AORB)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER1)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER2)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER3)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER4)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER5)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER6)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER7)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER8)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER9)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER10)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER11)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER12)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER13)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER14)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER15)||
CMODE::GetFocus() ==GetDlgItem(IDC_CTRL_ORDER16)||
CMODE::GetFocus() ==GetDlgItem(IDC_STATIC_ENTER1)||
CMODE::GetFocus() ==GetDlgItem(IDC_STATIC_CANCEL1))
{
index--;
if(index<0) index=18;
if(index==0)
{
m_static_AORB.SetFocus();
m_static_AORB.bkColor( bk1 );
m_static_ORDER1.bkColor( bk );
m_tip_AORB.ShowWindow(SW_SHOW);
m_tip_DG11.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==1)
{
m_static_ORDER1.SetFocus();
m_static_ORDER1.bkColor( bk1 );
m_static_ORDER2.bkColor( bk );
m_tip_DG11.ShowWindow(SW_SHOW);
m_tip_DG21.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==2)
{
m_static_ORDER2.SetFocus();
m_static_ORDER2.bkColor( bk1 );
m_static_ORDER3.bkColor( bk );
m_tip_DG21.ShowWindow(SW_SHOW);
m_tip_DG31.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==3)
{
m_static_ORDER3.SetFocus();
m_static_ORDER3.bkColor( bk1 );
m_static_ORDER4.bkColor( bk );
m_tip_DG31.ShowWindow(SW_SHOW);
m_tip_DG41.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==4)
{
m_static_ORDER4.SetFocus();
m_static_ORDER4.bkColor( bk1 );
m_static_ORDER5.bkColor( bk );
m_tip_DG41.ShowWindow(SW_SHOW);
m_tip_DG51.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==5)
{
m_static_ORDER5.SetFocus();
m_static_ORDER5.bkColor( bk1 );
m_static_ORDER6.bkColor( bk );
m_tip_DG51.ShowWindow(SW_SHOW);
m_tip_DG61.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==6)
{
m_static_ORDER6.SetFocus();
m_static_ORDER6.bkColor( bk1 );
m_static_ORDER7.bkColor( bk );
m_tip_DG61.ShowWindow(SW_SHOW);
m_tip_DG71.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==7)
{
m_static_ORDER7.SetFocus();
m_static_ORDER7.bkColor( bk1 );
m_static_ORDER8.bkColor( bk );
m_tip_DG71.ShowWindow(SW_SHOW);
m_tip_DG81.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==8)
{
m_static_ORDER8.SetFocus();
m_static_ORDER8.bkColor( bk1 );
m_static_ORDER9.bkColor( bk );
m_tip_DG81.ShowWindow(SW_SHOW);
m_tip_DG91.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==9)
{
m_static_ORDER9.SetFocus();
m_static_ORDER9.bkColor( bk1 );
m_static_ORDER10.bkColor( bk );
m_tip_DG91.ShowWindow(SW_SHOW);
m_tip_DG101.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==10)
{
m_static_ORDER10.SetFocus();
m_static_ORDER10.bkColor( bk1 );
m_static_ORDER11.bkColor( bk );
m_tip_DG101.ShowWindow(SW_SHOW);
m_tip_DG111.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==11)
{
m_static_ORDER11.SetFocus();
m_static_ORDER11.bkColor( bk1 );
m_static_ORDER12.bkColor( bk );
m_tip_DG111.ShowWindow(SW_SHOW);
m_tip_DG121.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==12)
{
m_static_ORDER12.SetFocus();
m_static_ORDER12.bkColor( bk1 );
m_static_ORDER13.bkColor( bk );
m_tip_DG121.ShowWindow(SW_SHOW);
m_tip_DG131.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==13)
{
m_static_ORDER13.SetFocus();
m_static_ORDER13.bkColor( bk1 );
m_static_ORDER14.bkColor( bk );
m_tip_DG131.ShowWindow(SW_SHOW);
m_tip_DG141.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==14)
{
m_static_ORDER14.SetFocus();
m_static_ORDER14.bkColor( bk1 );
m_static_ORDER15.bkColor( bk );
m_tip_DG141.ShowWindow(SW_SHOW);
m_tip_DG151.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==15)
{
m_static_ORDER15.SetFocus();
m_static_ORDER15.bkColor( bk1 );
m_static_ORDER16.bkColor( bk );
m_tip_DG151.ShowWindow(SW_SHOW);
m_tip_DG161.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==16)
{
m_static_ORDER16.SetFocus();
m_static_ORDER16.bkColor( bk1 );
m_static_ENTER.bkColor( bk );
m_tip_DG161.ShowWindow(SW_SHOW);
m_tip_ENTER.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==17)
{
m_static_ENTER.SetFocus();
m_static_ENTER.bkColor( bk1 );
m_static_CANCEL.bkColor( bk );
m_tip_ENTER.ShowWindow(SW_SHOW);
m_tip_CANCEL.ShowWindow(SW_HIDE);
return TRUE;
}
if(index==18)
{
m_static_CANCEL.SetFocus();
m_static_CANCEL.bkColor( b
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -