git-svn-id: svn://ultimatepp.org/upp/trunk@13891 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-01-15 18:44:22 +00:00
parent dc1fe5bace
commit bfcf78d36f

View file

@ -9,14 +9,17 @@ struct MyApp : TopWindow
void Paint(Draw& w) override {
w.DrawRect(GetSize(), LtGray());
w.DrawImage(0, 0, img);
w.DrawRect(DPI(400) - DPI(5), DPI(40) - DPI(5), DPI(210), DPI(90), Red());
w.DrawRect(DPI(400), DPI(40), DPI(200), DPI(80), Red());
w.DrawText(DPI(400), DPI(40), "Here", Arial(DPI(80)), Yellow());
}
void LeftDown(Point, dword) override {
static int ii;
ViewDraw iw(this);
iw.DrawRect(GetSize(), LtGray());
iw.DrawRect(DPI(400), DPI(40), DPI(200), DPI(80), LtBlue());
iw.DrawText(DPI(400), DPI(40), AsString(ii++), Arial(DPI(80)));
iw.DrawEllipse(100, 100, 100, 100, Green());
iw.DrawText(DPI(400), DPI(40), AsString(ii++), Arial(DPI(80)), Yellow());
}
};