if ( accel )
m_accels[n] = accel;
else
- m_accels.Remove(n);
+ m_accels.RemoveAt(n);
}
if ( IsAttached() )
{
delete m_accels[n];
- m_accels.Remove(n);
+ m_accels.RemoveAt(n);
}
//else: this item doesn't have an accel, nothing to do
#endif // wxUSE_ACCEL
m_titles.Insert(title, pos);
- menu->Attach(this);
-
if ( IsAttached() )
{
if ( !::InsertMenu(GetHmenu(), pos,
wxLogLastError(wxT("RemoveMenu"));
}
- menu->Detach();
-
#if wxUSE_ACCEL
if ( menu->HasAccels() )
{