I have a drop down menu "menu" for which I want to add a check item which should be checked by default. How can I do the same in wxwidgets in C++?
check_option = menu->AppendCheckItem(CHECK_ID, wxT("Check"));
From the discussion,
In wxwidgets we don't have a one liner way to do the same. There is no other arguments that AppendCheckItem
accepts. Hence we need to call the check function to do the same.
check_option->Check(true);