mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
21 lines
335 B
C++
21 lines
335 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct MyApp : TopWindow {
|
|
Image img;
|
|
|
|
virtual void Paint(Draw& w) {
|
|
w.DrawRect(GetSize(), Gray());
|
|
w.DrawImage(0, 0, img);
|
|
}
|
|
|
|
MyApp() {
|
|
img = StreamRaster::LoadStringAny(HttpRequest("http://www.ultimatepp.org/1i.png").Execute());
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyApp().Run();
|
|
}
|