SelectItem() always sends the notification messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -711,7 +711,7 @@ bool wxTreeCtrl::SelectItem(long itemId)
|
||||
return TRUE;
|
||||
};
|
||||
|
||||
void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents )
|
||||
void wxTreeCtrl::SelectItem(wxGenericTreeItem *item)
|
||||
{
|
||||
if (m_current != item)
|
||||
{
|
||||
@@ -724,7 +724,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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user