mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
31 lines
605 B
C++
31 lines
605 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
struct App : TopWindow {
|
|
void LeftDown(Point p, dword keyflags)
|
|
{
|
|
Refresh(Rect(0,0,6,GetSize().cy));
|
|
}
|
|
|
|
void Paint(Draw &w)
|
|
{
|
|
Size sz = GetSize();
|
|
Rect rc = w.GetClip();
|
|
static bool first = true;
|
|
|
|
DUMP(rc);
|
|
|
|
if(first)
|
|
{
|
|
w.DrawRect(sz, SGreen);
|
|
first = false;
|
|
}
|
|
else
|
|
for(int i = rc.left; i <= rc.right; i++)
|
|
w.DrawLine(i, rc.top , i, rc.bottom, 0, (i & 1) ? SWhite : SBlack);
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
App().Run();
|
|
}
|