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
This commit is contained in:
Vadim Zeitlin 2005-03-18 15:16:22 +00:00
parent ef46ef23cb
commit 9994e2daa0

View File

@ -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__