ultimatepp/uppdev/DragTest/main.cpp
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

33 lines
457 B
C++

#include "DragTest.h"
DragTest::DragTest()
{
Add(ctrl);
ctrl.VSizePos(100, 0).HSizePosZ(0, 0);
}
void DragCtrl::LeftDrag(Point p, dword keyflags)
{
PromptOK("Drag start");
}
void DragCtrl::RightDown(Point p, dword keyflags)
{
MenuBar::Execute(THISBACK(OnBar));
}
void DragCtrl::OnBar(Bar &bar)
{
bar.Add("Context Item", THISBACK(OnBarItem));
}
void DragCtrl::OnBarItem()
{
}
GUI_APP_MAIN
{
DragTest().Run();
}