git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4290
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxFrame::DoMenuUpdates(wxMenu* menu, wxWindow* WXUNUSED(focusWin))
{
wxEvtHandler* evtHandler = GetEventHandler();
void wxFrame::DoMenuUpdates(wxMenu* menu, wxWindow* WXUNUSED(focusWin))
{
wxEvtHandler* evtHandler = GetEventHandler();
- wxNode* node = menu->GetItems().First();
+ wxMenuItemList::Node* node = menu->GetMenuItems().GetFirst();
- wxMenuItem* item = (wxMenuItem*) node->Data();
+ wxMenuItem* item = node->GetData();
if ( !item->IsSeparator() )
{
wxWindowID id = item->GetId();
if ( !item->IsSeparator() )
{
wxWindowID id = item->GetId();
if (item->GetSubMenu())
DoMenuUpdates(item->GetSubMenu(), (wxWindow*) NULL);
}
if (item->GetSubMenu())
DoMenuUpdates(item->GetSubMenu(), (wxWindow*) NULL);
}
+ node = node->GetNext();
if ( !bar )
return FALSE;
if ( !bar )
return FALSE;
- wxMenuItem *item = bar->FindItemForId(id);
+ wxMenuItem *item = bar->FindItem(id);
if ( item && item->IsCheckable() )
{
item->Toggle();
if ( item && item->IsCheckable() )
{
item->Toggle();
- if (GetMenuBar() && GetMenuBar()->FindItemForId(id))
+ if (GetMenuBar() && GetMenuBar()->FindItem(id))
{
ProcessCommand(id);
return TRUE;
{
ProcessCommand(id);
return TRUE;
size_t count = GetMenuCount();
for ( size_t i = 0; !item && (i < count); i++ )
{
size_t count = GetMenuCount();
for ( size_t i = 0; !item && (i < count); i++ )
{
- item = m_menus[i]->FindItemForId(id, itemMenu);
+ item = m_menus[i]->FindItem(id, itemMenu);