]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/menu.h
wxListCtrl will receive EVT_CHAR() events now
[wxWidgets.git] / include / wx / gtk / menu.h
index 18844219c92eb6a0793b9bc1a1b479de570edd94..08a63b914eee9406737e442e9c91125e242dbdb0 100644 (file)
@@ -44,6 +44,7 @@ class wxMenuBar: public wxWindow
 DECLARE_DYNAMIC_CLASS(wxMenuBar)
 
 public:
+  wxMenuBar( long style );
   wxMenuBar();
   void Append( wxMenu *menu, const wxString &title );
 
@@ -128,6 +129,12 @@ public:
   inline void SetClientData( void* clientData ) { m_clientData = clientData; }
   inline void* GetClientData() const { return m_clientData; }
   
+  // Updates the UI for a menu and all submenus recursively.
+  // source is the object that has the update event handlers
+  // defined for it. If NULL, the menu or associated window
+  // will be used.
+  void UpdateUI(wxEvtHandler* source = (wxEvtHandler*) NULL);
+
 // implementation
   
   int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;