]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/menu.h
1. fixed crash in wxDateTime::ParseDate
[wxWidgets.git] / include / wx / msw / menu.h
index c637dd4b4cf53e6c454ac357589a430e94b3c760..30815349c39f4662da17d0fc036909545d58e457 100644 (file)
@@ -49,16 +49,19 @@ public:
 
     virtual void SetTitle(const wxString& title);
 
-    // MSW-specific
-    bool ProcessCommand(wxCommandEvent& event);
-
-#if WXWIN_COMPATIBILITY
+    // deprecated functions
+#if wxUSE_MENU_CALLBACK
     wxMenu(const wxString& title, const wxFunction func)
         : wxMenuBase(title)
     {
+        Init();
+
         Callback(func);
     }
-#endif // WXWIN_COMPATIBILITY
+#endif // wxUSE_MENU_CALLBACK
+
+    // MSW-specific
+    bool ProcessCommand(wxCommandEvent& event);
 
     // implementation only from now on
     // -------------------------------
@@ -150,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