X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/600ea9da947140e7dedc2c6b101cfd511f117ae6..8fb66724c607c755b2b6d470b9694de7038171ec:/include/wx/msw/menu.h diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index c637dd4b4c..741b88aa6e 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -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 // -------------------------------