📄 mbox.cpp
字号:
#include"\sunshine\include\mbox.h"
#include"\sunshine\include\app.h"
void MBox::UnFocus()
{
Mouse am(1);
if(!style)
{
setfillstyle(SOLID_FILL,color);
bar(x(),y(),x()+w()-1,y()+h()-1);
return;
}
setcolor(BLACK);
rectangle(x(),y(),x()+w()-1,y()+h()-1);
setfillstyle(SOLID_FILL,color);
bar(x()+2,y()+2,x()+w()-3,y()+h()-3);
setcolor(WHITE);
line(x()+1,y()+1,x()+w()-2,y()+1);
line(x()+1,y()+1,x()+1,y()+h()-2);
setcolor(BLACK);
line(x()+1,y()+h()-2,x()+w()-2,y()+h()-2);
line(x()+w()-2,y()+h()-2,x()+w()-2,y()+1);
setcolor(DARKGRAY);
rectangle(x()+5,y()+5,x()+w()-6,y()+h()-6);
setcolor(WHITE);
rectangle(x()+6,y()+6,x()+w()-5,y()+h()-5);
}
int MBox::Process()
{
if(firstrun){firstrun=0;UnFocus();return 1;}
return 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -