ultimatepp/upptst/FullScreen/main.cpp
cxl 3eec741a60 .uppstst
git-svn-id: svn://ultimatepp.org/upp/trunk@11021 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-04-22 08:36:06 +00:00

22 lines
397 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyApp : TopWindow {
virtual void LeftDown(Point p, dword keyflags) {
FullScreen(!IsFullScreen());
}
virtual void Paint(Draw& w) {
w.DrawRect(GetSize(), White());
w.DrawText(0, 0, IsFullScreen() ? "FULLSCREEN" : "OVERLAPPED");
}
MyApp() {
Zoomable().Sizeable();
}
};
GUI_APP_MAIN
{
MyApp().Run();
}