/
dinruspro
/
tutorial
Обзор
Документация
Войти
/
dinruspro
/
tutorial
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
Gui08/main.cpp
28 строк
409 B
EnergonV
Уроки теперь тоже здесь!
09 янв 2024, 19:25
09 янв 2024, 19:25
4b3ebd6
Код
Авторство
О чём код?
#include <CtrlLib/CtrlLib.h> using namespace Upp; struct MyAppWindow : TopWindow { void Exit() { if(PromptOKCancel("Exit MyApp?")) Break(); } void RightDown(Point, dword) override { MenuBar::Execute( [=](Bar& bar) { bar.Add("Exit", [=] { Exit(); }); } ); } MyAppWindow() { Title("My application with local menu").Sizeable(); } }; GUI_APP_MAIN { MyAppWindow app; app.Run(); }