compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
600ea9da94
commit
dd60b9ec1e
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user