if (pAccel)
m_vAccels[n] = pAccel;
else
- m_vAccels.Remove(n);
+ m_vAccels.RemoveAt(n);
}
if (IsAttached())
if (n != wxNOT_FOUND)
{
delete m_vAccels[n];
- m_vAccels.Remove(n);
+ m_vAccels.RemoveAt(n);
}
#endif // wxUSE_ACCEL
}
else if ( pItem->IsSubMenu() )
{
- pItem = pItem->GetSubMenu()->FindItem(nItemId, hItem, ppItemMenu);
+ pItem = pItem->GetSubMenu()->FindItem( nItemId
+ ,hItem
+ ,ppItemMenu
+ );
+ if (pItem)
+ break;
}
else
{
if (!wxMenuBarBase::Append(pMenu, Title))
return FALSE;
- pMenu->Attach(this);
m_titles.Add(Title);
if ( IsAttached() )