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
This commit is contained in:
@@ -86,8 +86,10 @@ public:
|
|||||||
virtual wxMenuBar *GetMenuBar() const { return m_frameMenuBar; }
|
virtual wxMenuBar *GetMenuBar() const { return m_frameMenuBar; }
|
||||||
#endif // wxUSE_MENUS
|
#endif // wxUSE_MENUS
|
||||||
|
|
||||||
|
#ifdef WXWIN_COMPATIBILITY_2_2
|
||||||
// call this to simulate a menu command
|
// call this to simulate a menu command
|
||||||
bool Command(int id) { return ProcessCommand(id); }
|
bool Command(int id) { return ProcessCommand(id); }
|
||||||
|
#endif // WXWIN_COMPATIBILITY_2_2
|
||||||
|
|
||||||
// process menu command: returns TRUE if processed
|
// process menu command: returns TRUE if processed
|
||||||
bool ProcessCommand(int id);
|
bool ProcessCommand(int id);
|
||||||
|
Reference in New Issue
Block a user