mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
25 lines
379 B
C++
25 lines
379 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct App : TopWindow {
|
|
bool fullscreen;
|
|
|
|
virtual void LeftDown(Point, dword) {
|
|
Close();
|
|
DUMP(IsOpen());
|
|
FullScreen(fullscreen = !fullscreen);
|
|
SetRect(100, 100, 400, 400);
|
|
OpenMain();
|
|
}
|
|
|
|
App() { fullscreen = false; }
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
App app;
|
|
app.OpenMain();
|
|
Ctrl::EventLoop();
|
|
}
|
|
|