X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/600ea9da947140e7dedc2c6b101cfd511f117ae6..3b415ba4cdee694574d7235ff0b8341f105cddfe:/include/wx/msw/menu.h diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index c637dd4b4c..30815349c3 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 // ------------------------------- @@ -150,7 +153,6 @@ public: // implementation from now on WXHMENU Create(); - int FindMenu(const wxString& title); void Detach(); // returns TRUE if we're attached to a frame