if ( senderWindow != NULL )
{
wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED , menuid);
- event.SetEventObject(senderWindow);
+ event.SetEventObject(this);
event.SetInt(item->IsCheckable() ? item->IsChecked() : -1);
if ( senderWindow->HandleWindowEvent(event) )