X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/499bbaeba33ed77d8a43817de6713ba3f70b018d..61d07ac77ac5ad7b91812b93b1870d361021314d:/src/msw/treectrl.cpp diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index e4bd059a26..8250f48782 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -659,7 +659,7 @@ bool wxTreeCtrl::Create(wxWindow *parent, if ( m_windowStyle & wxTR_FULL_ROW_HIGHLIGHT ) { - if ( wxTheApp->GetComCtl32Version() >= 471 ) + if ( wxApp::GetComCtl32Version() >= 471 ) wstyle |= TVS_FULLROWSELECT; } @@ -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__