#include <CtrlLib/CtrlLib.h> using namespace Upp; struct MyAppWindow : TopWindow { virtual void Paint(Draw& w) { w.DrawRect(GetSize(), Green); w.DrawText(20, 20, "Hello world!", Arial(30), Magenta); } MyAppWindow() { FrameLess(); Title("My application").Zoomable().Sizeable(); } }; GUI_APP_MAIN { MyAppWindow app; app.SetRect(0, 0, 200, 100); app.FrameLess(false); app.Run(); }