Retrieves the menubar based on the name given in AddMenuBar(name)
| 982 | /// Retrieves the menubar based on the name given in AddMenuBar(name) |
| 983 | /// |
| 984 | wxMenuBar *MenuItemVisitor::GetMenuBar(const wxString & sMenu) const |
| 985 | { |
| 986 | for (const auto &entry : mMenuBarList) |
| 987 | { |
| 988 | if(entry.name == sMenu) |
| 989 | return entry.menubar; |
| 990 | } |
| 991 | |
| 992 | return NULL; |
| 993 | } |
| 994 | |
| 995 | /// |
| 996 | /// Retrieve the 'current' menubar; either NULL or the |
no outgoing calls
no test coverage detected