]> git.saurik.com Git - wxWidgets.git/commitdiff
set event object for wxContextMenuEvent (patch 797697)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Sep 2003 23:59:02 +0000 (23:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Sep 2003 23:59:02 +0000 (23:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 6ca8054528785357ccd73c44ef36ed7a7f3cd783..2a65b3d3ff9136ba22eecd2ae10595ab2af80684 100644 (file)
@@ -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;