From: Vadim Zeitlin Date: Fri, 18 Mar 2005 15:16:22 +0000 (+0000) Subject: continue with generating EVT_CONTEXT_MENU if EVT_TREE_ITEM_MENU not handled X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9994e2daa0f1fccd78884283ea38cd7cafd35a3d continue with generating EVT_CONTEXT_MENU if EVT_TREE_ITEM_MENU not handled git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index e4bd059a26..6bc4c2341c 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -2247,9 +2247,9 @@ WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_MENU, GetId() ); event.m_item = GetSelection(); event.SetEventObject( this ); - GetEventHandler()->ProcessEvent( event ); - - return rc; + if ( GetEventHandler()->ProcessEvent(event) ) + return true; + //else: continue with generating wxEVT_CONTEXT_MENU in base class code } #endif // __SMARTPHONE__