nettime.cpp
来自「嵌入式计算机及接口技术」· C++ 代码 · 共 83 行
CPP
83 行
#include "NetTime.h"
//#define as 78
#define FishState 0
#define TotolState 1
NetTime::NetTime()
{
///////////////////////////////////////
this->BackColor=Blue;
this->ForeColor=Face;
this->FontColor=Yellow;
this->FontType=GB16;
this->VisionEnable=false;
this->Enable=true;
// this->WindowVisionModel=WinVisionModel_Normal;
// this->WindowVisionModel=WinVisionModel_SingleColor;
this->WindowVisionModel=WinVisionModel_Picture;
SetCaption("广东海洋大学");
this->Focus=false;
BackPicture.PictureID=1;
Edit1.Focus=true;
Edit1.Left=115;
Edit1.Top=120;
Edit1.Height=32;
Edit1.Width=85;
Edit1.FontType=GB32;
Edit1.FontColor=Yellow;
Edit1.FontBack=Red;
Edit1.BackColor=Red;
Edit1.ForeColor=Black;
this->AddChird(&Edit1);
};
void NetTime::Message(MessageBody SystemMsg)
{
if (SystemMsg.MsgID==Sys_Msg_RealKeyBoard_Press)
{
if (SystemMsg.Parm1==Special_Key_Down)
{
PassData(); //传递数据到发送窗口
this->CloseNoRefresh();
NextWindow->Active();
};
if ((SystemMsg.Parm1>='0')&&(SystemMsg.Parm1<='9'))
{
Edit1.Message( SystemMsg);
};
if( SystemMsg.Parm1==Special_Key_Clear)
{
Edit1.SetFocus();
};
}
} ;
//传递数据到发送窗口
void NetTime::PassData()
{
this->Msg.MsgID=Usr_Msg_Pass_NetTime ;
this->Msg.Parm1=Edit1.TextLength;
this->Msg.Msg=Edit1.Text;
SendWindow->Message(Msg);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?