From d37a02d0d5a40b42019ef2d213dca210219a18e6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 24 Jul 1998 17:04:48 +0000 Subject: [PATCH] SelectItem() now sends a wxEVT_SELECTED notification. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectrl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index bd94192309..a8cb0cfb1a 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -714,12 +714,12 @@ bool wxTreeCtrl::SelectItem(long itemId) return FALSE; } - SelectItem(pItem, FALSE /* no events */); + SelectItem(pItem); return TRUE; }; -void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents) +void wxTreeCtrl::SelectItem(wxGenericTreeItem *item) { if (m_current != item) { @@ -732,8 +732,7 @@ void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents) m_current->SetHilight( TRUE ); RefreshLine( m_current ); - if ( bDoEvents ) - m_current->SendSelected( this ); + m_current->SendSelected( this ); } } -- 2.50.0