]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/menu.h
test complete :-)
[wxWidgets.git] / include / wx / msw / menu.h
index 31e2488996777ac01fad2b5710f9476edc254e71..25364af1be81a15cba3285c69a4510a55d2999f0 100644 (file)
@@ -49,16 +49,17 @@ public:
 
     virtual void SetTitle(const wxString& title);
 
-    // MSW-specific
-    bool ProcessCommand(wxCommandEvent& event);
-
-#ifdef WXWIN_COMPATIBILITY
+    // deprecated functions
+#if wxUSE_MENU_CALLBACK
     wxMenu(const wxString& title, const wxFunction func)
         : wxMenuBase(title)
     {
         Callback(func);
     }
-#endif // WXWIN_COMPATIBILITY
+#endif // wxUSE_MENU_CALLBACK
+
+    // MSW-specific
+    bool ProcessCommand(wxCommandEvent& event);
 
     // implementation only from now on
     // -------------------------------
@@ -140,7 +141,7 @@ public:
     virtual wxString GetLabelTop( size_t pos ) const;
 
     // compatibility: these functions are deprecated
-#ifdef WXWIN_COMPATIBILITY
+#if WXWIN_COMPATIBILITY
     void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; }
     wxEvtHandler *GetEventHandler() { return m_eventHandler; }
 
@@ -179,7 +180,7 @@ protected:
     // common part of all ctors
     void Init();
 
-#ifdef WXWIN_COMPATIBILITY
+#if WXWIN_COMPATIBILITY
     wxEvtHandler *m_eventHandler;
 #endif // WXWIN_COMPATIBILITY