ultimatepp/bazaar/CtrlPosTest2/main.cpp
kohait 36b4e41046 bazaar: CtrlPosTest2: a simpler demo case for CtrlPos
git-svn-id: svn://ultimatepp.org/upp/trunk@3136 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-01-31 13:50:40 +00:00

18 lines
354 B
C++

#include "CtrlPosTest2.h"
CtrlPosTest2::CtrlPosTest2()
{
CtrlLayout(vis);
SetRect(vis.GetRect()); //same size as the child
Add(vis.SizePos());
Sizeable().Zoomable();
hk.Visit(vis); //will add itself to vis->GetParent --> to this TopWindow with same vis.GetPos to cover it perfectly.
}
GUI_APP_MAIN
{
CtrlPosTest2().Run();
}