set event object for wxContextMenuEvent (patch 797697)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3ef22a5b02
commit
7e541da8b0
@ -2854,6 +2854,7 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
|
||||
wxPoint pt(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
|
||||
|
||||
wxContextMenuEvent evtCtx(wxEVT_CONTEXT_MENU, GetId(), pt);
|
||||
evtCtx.SetEventObject(this);
|
||||
processed = GetEventHandler()->ProcessEvent(evtCtx);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user