]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for !wxUSE_MENU_CALLBACK
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Nov 1999 16:19:33 +0000 (16:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Nov 1999 16:19:33 +0000 (16:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/menu.h

index 9ea6e9a338b2833be24993c789584d4055d4bca2..25364af1be81a15cba3285c69a4510a55d2999f0 100644 (file)
@@ -49,14 +49,17 @@ 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)
     {
         Callback(func);
     }
+#endif // wxUSE_MENU_CALLBACK
+
+    // MSW-specific
+    bool ProcessCommand(wxCommandEvent& event);
 
     // implementation only from now on
     // -------------------------------