]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/menu.h
another compilation fix
[wxWidgets.git] / include / wx / msw / menu.h
index 9ea6e9a338b2833be24993c789584d4055d4bca2..30815349c39f4662da17d0fc036909545d58e457 100644 (file)
@@ -49,14 +49,19 @@ public:
 
     virtual void SetTitle(const wxString& title);
 
-    // MSW-specific
-    bool ProcessCommand(wxCommandEvent& event);
-
+    // deprecated functions
+#if wxUSE_MENU_CALLBACK
     wxMenu(const wxString& title, const wxFunction func)
         : wxMenuBase(title)
     {
+        Init();
+
         Callback(func);
     }
+#endif // wxUSE_MENU_CALLBACK
+
+    // MSW-specific
+    bool ProcessCommand(wxCommandEvent& event);
 
     // implementation only from now on
     // -------------------------------
@@ -148,7 +153,6 @@ public:
 
     // implementation from now on
     WXHMENU Create();
-    int  FindMenu(const wxString& title);
     void Detach();
 
         // returns TRUE if we're attached to a frame