📄 mstaticb.cpp
字号:
#include"\sunshine\include\mstaticb.h"
#include"\sunshine\include\app.h"
void MStaticBox::UnFocus()
{
Mouse am;
am.MouseOff();
setcolor(DARKGRAY);
line(x(),y(),x()+w()-2,y());
line(x(),y(),x(),y()+h()-2);
setcolor(WHITE);
line(x()+1,y()+h()-1,x()+w()-1,y()+h()-1);
line(x()+w()-1,y()+h()-1,x()+w()-1,y()+1);
am.MouseOn();
}
void MStaticBox::GetFocus()
{
//puy anything you want to do here
}
int MStaticBox::Process()
{
if(firstrun){firstrun=0;UnFocus();return 1;}
return 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -