From 3512d53ddde55ca76ba3f1647ca10c8dcd1cb6d4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 2 Oct 2002 23:33:01 +0000 Subject: [PATCH] added a WXWIN_COMPATIBILITY_2_2 test around deprecated Command() method git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/frame.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/frame.h b/include/wx/frame.h index 2af6cd1d8d..4228ea0c10 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -86,8 +86,10 @@ public: virtual wxMenuBar *GetMenuBar() const { return m_frameMenuBar; } #endif // wxUSE_MENUS +#ifdef WXWIN_COMPATIBILITY_2_2 // call this to simulate a menu command bool Command(int id) { return ProcessCommand(id); } +#endif // WXWIN_COMPATIBILITY_2_2 // process menu command: returns TRUE if processed bool ProcessCommand(int id);