ultimatepp/reference/WebImage/main.cpp
cxl 92ae6d7d67 reference/WebImage
git-svn-id: svn://ultimatepp.org/upp/trunk@2543 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-07-18 17:07:57 +00:00

22 lines
370 B
C++

#include <CtrlLib/CtrlLib.h>
#include <Web/Web.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(HttpClientGet("http://www.ultimatepp.org/1i.png"));
}
};
GUI_APP_MAIN
{
MyApp().Run();
}