]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed right click handling
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 May 2001 19:18:44 +0000 (19:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 May 2001 19:18:44 +0000 (19:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 02d6431d796c73d5b037861a39fb4c6dda9d7c1f..ae5cf582a6161e70a3247975125ffbcbe5f8068e 100644 (file)
@@ -2258,13 +2258,7 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
                 wxPoint pt(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
 
                 wxContextMenuEvent evtCtx(wxEVT_CONTEXT_MENU, GetId(), pt);
-                GetEventHandler()->ProcessEvent(evtCtx);
-
-                // set processed to true even if the event is not handled
-                // because if we don't windows will propogate the
-                // WM_CONTEXTMENU up the parent window chain, which we have
-                // already done ourselves.
-                processed = true;
+                processed = GetEventHandler()->ProcessEvent(evtCtx);
             }
             break;
 #endif // __WIN32__