ultimatepp/reference/MenuBarCheck/main.cpp
cxl a41b842410 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@5927 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-03-23 11:06:23 +00:00

26 lines
370 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyApp : TopWindow {
typedef MyApp CLASSNAME;
bool check;
void Check() { check = !check; }
void RightDown(Point p, dword) {
MenuBar bar;
bar.Add("Check", THISBACK(Check)).Check(check);
bar.Execute();
}
MyApp() {
check = false;
}
};
GUI_APP_MAIN
{
MyApp().Run();
}