// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "xh_menu.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
wxMenuBar *p_bar = wxDynamicCast(m_parent, wxMenuBar);
if (p_bar)
+ {
p_bar->Append(menu, title);
+ }
else
{
wxMenu *p_menu = wxDynamicCast(m_parent, wxMenu);
if (p_menu)
+ {
p_menu->Append(GetID(), title, menu, help);
+ if (HasParam(wxT("enabled")))
+ p_menu->Enable(GetID(), GetBool(wxT("enabled")));
+ }
}
return menu;