]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
Commented out call that breaks metal style setting before Create
[wxWidgets.git] / src / common / menucmn.cpp
index 2437f07e4b13dd65d2737200e568a10d5c22786c..edf51cab54367c1947d7253eac012983dcfb74ba 100644 (file)
@@ -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