]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/menu/menu.cpp
Enable yet more tests in wxAnyTestCase::GetAs().
[wxWidgets.git] / tests / menu / menu.cpp
index abc4db0b0d3251f5f0e6e2d34a6f9baee21f2034..08667ef704c0f686f216b5793ca3230e7b449be3 100644 (file)
@@ -411,7 +411,7 @@ void MenuTestCase::Events()
         MenuEventHandler(wxWindow* win)
             : m_win(win)
         {
-            m_win->Connect(wxEVT_COMMAND_MENU_SELECTED,
+            m_win->Connect(wxEVT_MENU,
                            wxCommandEventHandler(MenuEventHandler::OnMenu),
                            NULL,
                            this);
@@ -422,7 +422,7 @@ void MenuTestCase::Events()
 
         virtual ~MenuEventHandler()
         {
-            m_win->Disconnect(wxEVT_COMMAND_MENU_SELECTED,
+            m_win->Disconnect(wxEVT_MENU,
                               wxCommandEventHandler(MenuEventHandler::OnMenu),
                               NULL,
                               this);