minor refactoring of menu UpdateUI handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1058,4 +1058,21 @@ wxString wxMenuBarBase::GetHelpString(int id) const
|
||||
return item->GetHelp();
|
||||
}
|
||||
|
||||
void wxMenuBarBase::UpdateMenus( void )
|
||||
{
|
||||
wxEvtHandler* source;
|
||||
wxMenu* menu;
|
||||
int nCount = GetMenuCount();
|
||||
for (int n = 0; n < nCount; n++)
|
||||
{
|
||||
menu = GetMenu( n );
|
||||
if (menu != NULL)
|
||||
{
|
||||
source = menu->GetEventHandler();
|
||||
if (source != NULL)
|
||||
menu->UpdateUI( source );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // wxUSE_MENUS
|
||||
|
Reference in New Issue
Block a user