mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
20 lines
312 B
C++
20 lines
312 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct MyApp : TopWindow {
|
|
typedef MyApp CLASSNAME;
|
|
|
|
bool check = false;
|
|
|
|
void RightDown(Point p, dword) {
|
|
MenuBar bar;
|
|
bar.Add("Check", [=] { check = !check; }).Check(check);
|
|
bar.Execute();
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyApp().Run();
|
|
}
|