void Drawtime(){::GetLocalTime(&stime);static SYSTEMTIME soldtime;soldtime.wSecond = -1;//这句什么含义?soldtime.wMinute = -1;soldtime.wHour = -1;soldtime.wDayOfWeek = -1;if(stime.wSecond % 2 == 0)//为什么要%2,有什么作用呢?MyDrawTextSp

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 02:03:45
voidDrawtime(){::GetLocalTime(&stime);staticSYSTEMTIMEsoldtime;soldtime.wSecond=-1;//这句什么含义?soldtime

void Drawtime(){::GetLocalTime(&stime);static SYSTEMTIME soldtime;soldtime.wSecond = -1;//这句什么含义?soldtime.wMinute = -1;soldtime.wHour = -1;soldtime.wDayOfWeek = -1;if(stime.wSecond % 2 == 0)//为什么要%2,有什么作用呢?MyDrawTextSp
void Drawtime()
{
::GetLocalTime(&stime);
static SYSTEMTIME soldtime;
soldtime.wSecond = -1;//这句什么含义?
soldtime.wMinute = -1;
soldtime.wHour = -1;
soldtime.wDayOfWeek = -1;
if(stime.wSecond % 2 == 0)//为什么要%2,有什么作用呢?
MyDrawTextSpri(hsprtime,L":",&Myxmll[secnum].Pos,DT_CENTER,Myxmll[secnum].Color,Myxmll[secnum].Fontsize);
else
MyDrawTextSpri(hsprtime,L"",&Myxmll[secnum].Pos,DT_CENTER,Myxmll[secnum].Color,Myxmll[secnum].Fontsize);
}
if(stime.wMinute = soldtime.wMinute)//"stime.wMinute = soldtime.wMinute"这句什么意思?有什么作用?
{
soldtime.wMinute = stime.wMinute;
wchar_t wszminute[8];
swprintf(wszminute,L"%02d",stime.wMinute);
MyDrawTextSpri(hsprtime,wszminute,&Myxmll[minnum].Pos,DT_CENTER,Myxmll[minnum].Color,Myxmll[minnum].Fontsize);
}

void Drawtime(){::GetLocalTime(&stime);static SYSTEMTIME soldtime;soldtime.wSecond = -1;//这句什么含义?soldtime.wMinute = -1;soldtime.wHour = -1;soldtime.wDayOfWeek = -1;if(stime.wSecond % 2 == 0)//为什么要%2,有什么作用呢?MyDrawTextSp
soldtime.wSecond = -1;//这句什么含义?》》》初始化变量
if(stime.wSecond % 2 == 0)//为什么要%2,有什么作用呢?》》》判断me.wSecond % 2 求莫是否等于0 如果等于0就进到if里面的内容
if(stime.wMinute != soldtime.wMinute)//"stime.wMinute != soldtime.wMinute"这句什么意思?有什么作用?
判断两个不相等