From dd60b9ec1e436bfa13eb94ffb69f921aef534eb0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 2 Nov 1999 01:31:51 +0000 Subject: [PATCH] compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/framecmn.cpp | 6 +++--- src/msw/frame.cpp | 2 +- src/msw/mdi.cpp | 2 +- src/msw/menu.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 24819cfa34..af39670bd7 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -41,10 +41,10 @@ void wxFrame::DoMenuUpdates() void wxFrame::DoMenuUpdates(wxMenu* menu, wxWindow* WXUNUSED(focusWin)) { wxEvtHandler* evtHandler = GetEventHandler(); - wxNode* node = menu->GetItems().First(); + wxMenuItemList::Node* node = menu->GetMenuItems().GetFirst(); while (node) { - wxMenuItem* item = (wxMenuItem*) node->Data(); + wxMenuItem* item = node->GetData(); if ( !item->IsSeparator() ) { wxWindowID id = item->GetId(); @@ -64,6 +64,6 @@ void wxFrame::DoMenuUpdates(wxMenu* menu, wxWindow* WXUNUSED(focusWin)) if (item->GetSubMenu()) DoMenuUpdates(item->GetSubMenu(), (wxWindow*) NULL); } - node = node->Next(); + node = node->GetNext(); } } diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 35f3e15db3..5cb1ff43a6 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -670,7 +670,7 @@ bool wxFrame::ProcessCommand(int id) if ( !bar ) return FALSE; - wxMenuItem *item = bar->FindItemForId(id); + wxMenuItem *item = bar->FindItem(id); if ( item && item->IsCheckable() ) { item->Toggle(); diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 08360e1d02..39ccc4c884 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -889,7 +889,7 @@ bool wxMDIChildFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND hwnd) return TRUE; } - if (GetMenuBar() && GetMenuBar()->FindItemForId(id)) + if (GetMenuBar() && GetMenuBar()->FindItem(id)) { ProcessCommand(id); return TRUE; diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 139accd657..8181a46864 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -865,7 +865,7 @@ wxMenuItem *wxMenuBar::FindItem(int id, wxMenu **itemMenu) const 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); } return item;