mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
22 lines
397 B
C++
22 lines
397 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct MyApp : TopWindow {
|
|
virtual void LeftDown(Point p, dword keyflags) {
|
|
FullScreen(!IsFullScreen());
|
|
}
|
|
virtual void Paint(Draw& w) {
|
|
w.DrawRect(GetSize(), White());
|
|
w.DrawText(0, 0, IsFullScreen() ? "FULLSCREEN" : "OVERLAPPED");
|
|
}
|
|
|
|
MyApp() {
|
|
Zoomable().Sizeable();
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyApp().Run();
|
|
}
|