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

📄 sum2.cpp

📁 嵌入式计算机及接口技术
💻 CPP
字号:
#include "Sum2.h"

  Sum2::Sum2()
 {
 

 ///////////////////////////////////////
    this->BackColor=Blue;
    this->ForeColor=Face;
    this->FontColor=Yellow;
    this->FontType=GB16;
    this->VisionEnable=false;
    this->Enable=true;
    
    this->WindowVisionModel=WinVisionModel_Picture;
    SetCaption("广东海洋大学");
    this->Focus=true;

    BackPicture.PictureID=18;

     
    Edit1.Left=150;
    Edit1.Top=50;
    Edit1.Height=24;
    Edit1.Width=50;
    Edit1.FontType=GB24;
    Edit1.FontColor=Yellow;
    Edit1.FontBack=Red;
    Edit1.BackColor=Red;
    Edit1.ForeColor=Black;
    Edit1.MaxLength=4;
      this->AddChird(&Edit1);


    Edit2.Left=150;
    Edit2.Top=85;
    Edit2.Height=24;
    Edit2.Width=50;
    Edit2.FontType=GB24;
    Edit2.FontColor=Yellow;
    Edit2.FontBack=Red;
    Edit2.BackColor=Red;
    Edit2.ForeColor=Black;
    Edit2.MaxLength=4;
      this->AddChird(&Edit2);


    Edit3.Left=150;
    Edit3.Top=120;
    Edit3.Height=24;
    Edit3.Width=50;
    Edit3.FontType=GB24;
    Edit3.FontColor=Yellow;
    Edit3.FontBack=Red;
    Edit3.BackColor=Red;
    Edit3.ForeColor=Black;
    Edit3.MaxLength=4;
      this->AddChird(&Edit3);

    Edit4.Left=150;
    Edit4.Top=160;
    Edit4.Height=24;
    Edit4.Width=50;
    Edit4.FontType=GB24;
    Edit4.FontColor=Yellow;
    Edit4.FontBack=Red;
    Edit4.BackColor=Red;
    Edit4.ForeColor=Black;
    Edit4.MaxLength=4;
      this->AddChird(&Edit4);

    Edit5.Left=150;
    Edit5.Top=195;
    Edit5.Height=24;
    Edit5.Width=50;
    Edit5.FontType=GB24;
    Edit5.FontColor=Yellow;
    Edit5.FontBack=Red;
    Edit5.BackColor=Red;
    Edit5.ForeColor=Black;
    Edit5.MaxLength=4;
    this->AddChird(&Edit5);


  };
  
void  Sum2::Message(MessageBody SystemMsg)
{
  if (SystemMsg.MsgID==Sys_Msg_RealKeyBoard_Press)
  {
  
     if (SystemMsg.Parm1==Special_Key_Down)
         {
          
          this->CloseNoRefresh();
          NextWindow->Active();
     
         };

     if (SystemMsg.Parm1==Special_Key_Up)
         {
          
             
          this->CloseNoRefresh();
          ForwardWindow->Active();
     
        };


        
  }
  
 
} ;

void Sum2::OnActive()
  {
  
      
      
      
              Edit1.Text[0]=FishWindow->FishStruct.FishCell[5].FishProduct[0]; 
              Edit1.Text[1]=FishWindow->FishStruct.FishCell[5].FishProduct[1]; 
              Edit1.Text[2]=FishWindow->FishStruct.FishCell[5].FishProduct[2]; 
              Edit1.Text[3]=FishWindow->FishStruct.FishCell[5].FishProduct[3]; 

              Edit2.Text[0]=FishWindow->FishStruct.FishCell[6].FishProduct[0]; 
              Edit2.Text[1]=FishWindow->FishStruct.FishCell[6].FishProduct[1]; 
              Edit2.Text[2]=FishWindow->FishStruct.FishCell[6].FishProduct[2]; 
              Edit2.Text[3]=FishWindow->FishStruct.FishCell[6].FishProduct[3]; 

              Edit3.Text[0]=FishWindow->FishStruct.FishCell[7].FishProduct[0]; 
              Edit3.Text[1]=FishWindow->FishStruct.FishCell[7].FishProduct[1]; 
              Edit3.Text[2]=FishWindow->FishStruct.FishCell[7].FishProduct[2]; 
              Edit3.Text[3]=FishWindow->FishStruct.FishCell[7].FishProduct[3]; 
      
              Edit4.Text[0]=FishWindow->FishStruct.FishCell[8].FishProduct[0]; 
              Edit4.Text[1]=FishWindow->FishStruct.FishCell[8].FishProduct[1]; 
              Edit4.Text[2]=FishWindow->FishStruct.FishCell[8].FishProduct[2]; 
              Edit4.Text[3]=FishWindow->FishStruct.FishCell[8].FishProduct[3]; 
    
              Edit5.Text[0]=FishWindow->FishStruct.FishCell[9].FishProduct[0]; 
              Edit5.Text[1]=FishWindow->FishStruct.FishCell[9].FishProduct[1]; 
              Edit5.Text[2]=FishWindow->FishStruct.FishCell[9].FishProduct[2]; 
              Edit5.Text[3]=FishWindow->FishStruct.FishCell[9].FishProduct[3]; 
      
      //        Refresh();

  };

⌨️ 快捷键说明

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