From cc160ba62b1b635a6c74a8ede9af19e93c025f6e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 19 Nov 1999 16:19:33 +0000 Subject: [PATCH] compilation fix for !wxUSE_MENU_CALLBACK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/menu.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 // ------------------------------- -- 2.45.2