#include "wx/menu.h"
#endif
+extern WXDLLEXPORT_DATA(const char) wxToolBarNameStr[] = "toolbar";
+
// ----------------------------------------------------------------------------
// wxWidgets macros
// ----------------------------------------------------------------------------
wxToolBarToolBase::~wxToolBarToolBase()
{
+#if wxUSE_MENUS
delete m_dropdownMenu;
+#endif
+
if ( IsControl() )
GetControl()->Destroy();
}
}
+#if wxUSE_MENUS
void wxToolBarToolBase::SetDropdownMenu(wxMenu* menu)
{
delete m_dropdownMenu;
m_dropdownMenu = menu;
}
+#endif
// ----------------------------------------------------------------------------
}
}
+#if wxUSE_MENUS
bool wxToolBarBase::SetDropdownMenu(int toolid, wxMenu* menu)
{
wxToolBarToolBase * const tool = FindById(toolid);
return true;
}
+#endif
#if WXWIN_COMPATIBILITY_2_8