SelectItem() now sends a wxEVT_SELECTED notification.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1998-07-24 17:04:48 +00:00
parent 246037e229
commit d37a02d0d5

View File

@ -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 );
}
}