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