mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
21 lines
360 B
C++
21 lines
360 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct MyApp : TopWindow {
|
|
void Paint(Draw& w) override {
|
|
w.DrawRect(GetSize(), White());
|
|
}
|
|
|
|
Image CursorImage(Point p, dword keyflags) override {
|
|
if(p.x < GetSize().cx / 2)
|
|
return Image::Hand();
|
|
else
|
|
return CtrlImg::HelpCursor0();
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyApp().Run();
|
|
}
|