]> git.saurik.com Git - wxWidgets.git/commitdiff
adding OS level Window Menu by default
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 31 May 2005 05:13:38 +0000 (05:13 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 31 May 2005 05:13:38 +0000 (05:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/carbon/menu.h

index 112c6c19e1bf7a0da833384d3851e113a2bc0731..b23e612dc93ae0eb8beecfb04273d5c73d2270d9 100644 (file)
@@ -153,17 +153,24 @@ public:
     // call this function to update it (m_menuBarFrame should be !NULL)
     void Refresh(bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL);
 
-  void MacInstallMenuBar() ;
-  static wxMenuBar* MacGetInstalledMenuBar() { return s_macInstalledMenuBar ; }
-  static void MacSetCommonMenuBar(wxMenuBar* menubar) { s_macCommonMenuBar=menubar; }
-  static wxMenuBar* MacGetCommonMenuBar() { return s_macCommonMenuBar; }
+    static void SetAutoWindowMenu( bool enable ) { s_macAutoWindowMenu = enable ; }
+    static bool GetAutoWindowMenu() { return s_macAutoWindowMenu ; }
 
+    void MacInstallMenuBar() ;
+    static wxMenuBar* MacGetInstalledMenuBar() { return s_macInstalledMenuBar ; }
+    static void MacSetCommonMenuBar(wxMenuBar* menubar) { s_macCommonMenuBar=menubar; }
+    static wxMenuBar* MacGetCommonMenuBar() { return s_macCommonMenuBar; }
+
+
+    static WXHMENU MacGetWindowMenuHMenu() { return s_macWindowMenuHandle ; }
 protected:
     // common part of all ctors
     void Init();
     wxWindow        *m_invokingWindow;
 
-    wxArrayString m_titles;
+    wxArrayString   m_titles;
+    static bool     s_macAutoWindowMenu ;
+    static WXHMENU  s_macWindowMenuHandle ;
 
 private:
   static wxMenuBar*            s_macInstalledMenuBar ;