--- a/ui/win32/menu.h Sat Dec 27 22:47:56 2025 +0100 +++ b/ui/win32/menu.h Thu Jan 08 18:06:04 2026 +0100 @@ -37,6 +37,17 @@ extern "C" { #endif +typedef struct UiStateMenuItem { + UiObject *obj; + HMENU menu; + uint64_t id; + UiVar *var; + ui_callback onchange; + void *userdata; + int index; + UiBool state; +} UiStateMenuItem; + typedef void(*ui_menu_add_f)(HMENU, int, UiMenuItemI*, UiObject*); HMENU ui_create_main_menu(UiObject *obj); @@ -50,6 +61,12 @@ void ui_add_menu_radiolist(HMENU parent, int pos, UiMenuItemI *item, UiObject *obj); void ui_add_menu_separator(HMENU parent, int pos, UiMenuItemI *item, UiObject *obj); +int64_t ui_checkitem_get(UiInteger *i); +void ui_checkitem_set(UiInteger *i, int64_t value); + +int64_t ui_radioitem_get(UiInteger *i); +void ui_radioitem_set(UiInteger *i, int64_t value); + #ifdef __cplusplus } #endif