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

📄 mxa_mep.cpp

📁 面板显示程序
💻 CPP
📖 第 1 页 / 共 5 页
字号:
					m_static_DG93.SetWindowText("小");					
				else
					m_static_DG93.SetWindowText("大");						
				m_static_DG93.RedrawWindow();
				return   TRUE;
			}
		}
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG103)||
			CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG104))
		{
			CString temp1;
			if(index10==0)
			{		
				m_static_DG103.GetWindowText(temp1);
				if(temp1=="大")
					m_static_DG103.SetWindowText("小");					
				else
					m_static_DG103.SetWindowText("大");						
				m_static_DG103.RedrawWindow();
				return   TRUE;
			}
		}
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG113)||
			CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG114))
		{
			CString temp1;
			if(index11==0)
			{		
				m_static_DG113.GetWindowText(temp1);
				if(temp1=="大")
					m_static_DG113.SetWindowText("小");					
				else
					m_static_DG113.SetWindowText("大");						
				m_static_DG113.RedrawWindow();
				return   TRUE;
			}
		}
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG123)||
			CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG124))
		{
			CString temp1;
			if(index12==0)
			{		
				m_static_DG123.GetWindowText(temp1);
				if(temp1=="大")
					m_static_DG123.SetWindowText("小");					
				else
					m_static_DG123.SetWindowText("大");						
				m_static_DG123.RedrawWindow();
				return   TRUE;
			}
		}
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG133)||
			CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG134))
		{
			CString temp1;
			if(index13==0)
			{		
				m_static_DG133.GetWindowText(temp1);
				if(temp1=="大")
					m_static_DG133.SetWindowText("小");					
				else
					m_static_DG133.SetWindowText("大");						
				m_static_DG133.RedrawWindow();
				return   TRUE;
			}
		}
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG143)||
			CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG144))
		{
			CString temp1;
			if(index14==0)
			{		
				m_static_DG143.GetWindowText(temp1);
				if(temp1=="大")
					m_static_DG143.SetWindowText("小");					
				else
					m_static_DG143.SetWindowText("大");						
				m_static_DG143.RedrawWindow();
				return   TRUE;
			}
		}
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG153)||
			CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG154))
		{
			CString temp1;
			if(index15==0)
			{		
				m_static_DG153.GetWindowText(temp1);
				if(temp1=="大")
					m_static_DG153.SetWindowText("小");					
				else
					m_static_DG153.SetWindowText("大");						
				m_static_DG153.RedrawWindow();
				return   TRUE;
			}
		}
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG163)||
			CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG164))
		{
			CString temp1;
			if(index16==0)
			{		
				m_static_DG163.GetWindowText(temp1);
				if(temp1=="大")
					m_static_DG163.SetWindowText("小");					
				else
					m_static_DG163.SetWindowText("大");						
				m_static_DG163.RedrawWindow();
				return   TRUE;
			}
		}
	}	
	//上移动
	if(pMsg->message==WM_KEYDOWN && (pMsg->wParam==VK_UP))
	{
		//焦点在标头的时候
		if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_AORB)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER1)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER2)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER3)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER4)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER5)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER6)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER7)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER8)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER9)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER10)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER11)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER12)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER13)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER14)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER15)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ORDER16)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_ENTER)||
			CMXA_MEP::GetFocus() ==GetDlgItem(IDC_STATIC_CANCEL))
			
		{
			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( bk1 );
				m_static_AORB.bkColor( bk );
				m_tip_CANCEL.ShowWindow(SW_SHOW);
				m_tip_AORB.ShowWindow(SW_HIDE);
				return   TRUE;
			}
			}
			//在内部下
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG13)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG14))
			{
				CString temp1;
				if(index1==0)
				{		
					m_static_DG13.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG13.SetWindowText("小");					
					else
						m_static_DG13.SetWindowText("大");						
					m_static_DG13.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG23)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG24))
			{
				CString temp1;
				if(index2==0)
				{		
					m_static_DG23.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG23.SetWindowText("小");					
					else
						m_static_DG23.SetWindowText("大");						
					m_static_DG23.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG33)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG34))
			{
				CString temp1;
				if(index3==0)
				{		
					m_static_DG33.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG33.SetWindowText("小");					
					else
						m_static_DG33.SetWindowText("大");						
					m_static_DG33.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG43)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG44))
			{
				CString temp1;
				if(index4==0)
				{		
					m_static_DG43.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG43.SetWindowText("小");					
					else
						m_static_DG43.SetWindowText("大");						
					m_static_DG43.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG53)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG54))
			{
				CString temp1;
				if(index5==0)
				{		
					m_static_DG53.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG53.SetWindowText("小");					
					else
						m_static_DG53.SetWindowText("大");						
					m_static_DG53.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG63)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG64))
			{
				CString temp1;
				if(index6==0)
				{		
					m_static_DG63.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG63.SetWindowText("小");					
					else
						m_static_DG63.SetWindowText("大");						
					m_static_DG63.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG73)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG74))
			{
				CString temp1;
				if(index7==0)
				{		
					m_static_DG73.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG73.SetWindowText("小");					
					else
						m_static_DG73.SetWindowText("大");						
					m_static_DG73.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG83)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG84))
			{
				CString temp1;
				if(index8==0)
				{		
					m_static_DG83.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG83.SetWindowText("小");					
					else
						m_static_DG83.SetWindowText("大");						
					m_static_DG83.RedrawWindow();
					return   TRUE;
				}
			}
			if(CMXA_MEP::GetFocus() == GetDlgItem(IDC_STATIC_DG93)||
				CMXA_MEP::GetFocus() == GetDlgItem(IDC_EDIT_DG94))
			{
				CString temp1;
				if(index9==0)
				{		
					m_static_DG93.GetWindowText(temp1);
					if(temp1=="大")
						m_static_DG93.SetWindowText("小");					
					else

⌨️ 快捷键说明

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