mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
15 lines
295 B
C++
15 lines
295 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
Ctrl::InstallPaintHook([](Ctrl *ctrl, Draw& w, const Rect&) {
|
|
w.DrawRect(100, 100, 500, 200, Blue());
|
|
w.DrawText(100, 120, "PAINT HOOK!", Arial(50), Yellow());
|
|
});
|
|
|
|
TopWindow win1, win2;
|
|
win1.OpenMain();
|
|
win2.Run();
|
|
}
|