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
// -------------------------------
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; }
// common part of all ctors
void Init();
-#ifdef WXWIN_COMPATIBILITY
+#if WXWIN_COMPATIBILITY
wxEvtHandler *m_eventHandler;
#endif // WXWIN_COMPATIBILITY