X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0ab6adfedf92aa4457821422e77c19b80f10bee..0046ff7c4fd087d84641a9a3e0c40a54035b8b2c:/include/wx/msw/menu.h diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 9ea6e9a338..30815349c3 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -49,14 +49,19 @@ 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) { + Init(); + Callback(func); } +#endif // wxUSE_MENU_CALLBACK + + // MSW-specific + bool ProcessCommand(wxCommandEvent& event); // implementation only from now on // ------------------------------- @@ -148,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