ultimatepp/uppdev/DragTest/DragTest.h
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

25 lines
524 B
C++

#ifndef _DragTest_DragTest_h
#define _DragTest_DragTest_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct DragCtrl : public Ctrl
{
typedef DragCtrl CLASSNAME;
virtual void Paint(Draw& draw) {draw.DrawRect(GetSize(), White());}
virtual void LeftDrag(Point p, dword keyflags);
virtual void RightDown(Point p, dword keyflags);
void OnBar(Bar &bar);
void OnBarItem();
};
class DragTest : public TopWindow {
public:
typedef DragTest CLASSNAME;
DragTest();
DragCtrl ctrl;
};
#endif