mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
28 lines
431 B
C++
28 lines
431 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
#define IMAGEFILE <iml/image.iml>
|
|
#define IMAGECLASS MyImg
|
|
#include <Draw/iml.h>
|
|
|
|
struct App : TopWindow {
|
|
void Paint(Draw& w)
|
|
{
|
|
Size sz = GetSize();
|
|
w.DrawRect(sz, SGray);
|
|
Size isz = MyImg::Smiley().GetSize();
|
|
w.DrawImage((sz.cx - isz.cx) / 2, (sz.cy - isz.cy) / 2, MyImg::Smiley());
|
|
}
|
|
|
|
App()
|
|
{
|
|
Sizeable();
|
|
BackPaint();
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
App().Run();
|
|
}
|