Set the object for the context menu event.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3546,6 +3546,7 @@ void wxWindowMac::OnMouseEvent( wxMouseEvent &event )
|
|||||||
wxContextMenuEvent evtCtx(wxEVT_CONTEXT_MENU,
|
wxContextMenuEvent evtCtx(wxEVT_CONTEXT_MENU,
|
||||||
this->GetId(),
|
this->GetId(),
|
||||||
this->ClientToScreen(event.GetPosition()));
|
this->ClientToScreen(event.GetPosition()));
|
||||||
|
evtCtx.SetEventObject(this);
|
||||||
if ( ! GetEventHandler()->ProcessEvent(evtCtx) )
|
if ( ! GetEventHandler()->ProcessEvent(evtCtx) )
|
||||||
event.Skip() ;
|
event.Skip() ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user