X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b85b77ae2fd8df69a2bad218afbfcee0e4b7607c..42bf837cea417f83f478709be322eb713e6e2ec8:/include/wx/msw/menu.h diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 30d31527f3..e306076348 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -49,6 +49,17 @@ public: virtual void SetTitle(const wxString& title); + // deprecated functions +#if wxUSE_MENU_CALLBACK + wxMenu(const wxString& title, const wxFunction func) + : wxMenuBase(title) + { + Init(); + + Callback(func); + } +#endif // wxUSE_MENU_CALLBACK + // implementation only from now on // ------------------------------- @@ -158,7 +169,7 @@ public: void Refresh(); // To avoid compile warning - void Refresh( bool eraseBackground = TRUE, + void Refresh( bool eraseBackground, const wxRect *rect = (const wxRect *) NULL ) { wxWindow::Refresh(eraseBackground, rect); } protected: