diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 9ea6e9a338..25364af1be 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -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 // -------------------------------