From f350d4b2ee92d0e4db0019a649ed4ec74236c524 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 4 Mar 2006 18:18:28 +0000 Subject: [PATCH] If context menu not handled, treat as left click instead. If handled, don't send a left click event. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 7872678a64..a80bee3a53 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2614,9 +2614,10 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l evtCtx.SetEventObject(this); if (GetEventHandler()->ProcessEvent(evtCtx)) + { processed = true; - else - return MSWDefWindowProc(message, wParam, lParam); + return true; + } } } #endif -- 2.45.2