Removed overloaded DoMenuUpdates function since it duplicated

wxMenu::UpdateUI()
Removed routing of menu commands to focus window under Windows
Added routing of menu commands (but not UI updates, for
efficiency reasons) to wxMenuBar before sending to frame


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-07-09 14:20:30 +00:00
parent 63ad74ab2d
commit 18afa2acbe
4 changed files with 4 additions and 50 deletions

View File

@@ -553,7 +553,7 @@ void wxMenuBase::UpdateUI(wxEvtHandler* source)
if ( source->ProcessEvent(event) )
{
// if anything changed, update the chanegd attribute
// if anything changed, update the changed attribute
if (event.GetSetText())
SetLabel(id, event.GetText());
if (event.GetSetChecked())
@@ -566,7 +566,7 @@ void wxMenuBase::UpdateUI(wxEvtHandler* source)
if ( item->GetSubMenu() )
item->GetSubMenu()->UpdateUI(source);
}
//else: item is a separator (which don't process update UI events)
//else: item is a separator (which doesn't process update UI events)
node = node->GetNext();
}