mbox.cpp
来自「飞虹 vision仿windows开发」· C++ 代码 · 共 32 行
CPP
32 行
#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 + =
减小字号Ctrl + -
显示快捷键?