ultimatepp/reference/WebImage/main.cpp
cxl 3ecfeea4cf .examples
git-svn-id: svn://ultimatepp.org/upp/trunk@15687 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-01-20 22:53:10 +00:00

21 lines
364 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("https://www.ultimatepp.org/forums/theme/default/images/1i.png").Execute());
}
};
GUI_APP_MAIN
{
MyApp().Run();
}