ultimatepp/upptst/MaximizeOverlapped/main.cpp
cxl 9ffcadd32c .upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@11348 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-10-06 17:09:42 +00:00

21 lines
405 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
TopWindow w;
w.Sizeable().Zoomable();
w.SetMinSize(Size(600, 600));
w.Title("Maximize me and close me - it should be possible to 'unmaximize' this window after it reopens");
TopWindow main;
main.Open();
for(;;) {
if(!w.IsOpen())
w.OpenMain();
if(!main.IsOpen())
break;
Ctrl::ProcessEvents();
}
}