wxItemKind kind,
wxMenu *subMenu)
{
- wxASSERT_MSG( parentMenu != NULL, wxT("menuitem should have a menu") );
+ // notice that parentMenu can be NULL: the item can be attached to the menu
+ // later with SetMenu()
m_parentMenu = parentMenu;
m_subMenu = subMenu;
return item->GetHelp();
}
-void wxMenuBarBase::UpdateMenus( void )
+void wxMenuBarBase::UpdateMenus()
{
wxEvtHandler* source;
wxMenu* menu;