MenuEventHandler(wxWindow* win)
: m_win(win)
{
- m_win->Connect(wxEVT_COMMAND_MENU_SELECTED,
+ m_win->Connect(wxEVT_MENU,
wxCommandEventHandler(MenuEventHandler::OnMenu),
NULL,
this);
virtual ~MenuEventHandler()
{
- m_win->Disconnect(wxEVT_COMMAND_MENU_SELECTED,
+ m_win->Disconnect(wxEVT_MENU,
wxCommandEventHandler(MenuEventHandler::OnMenu),
NULL,
this);