git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3112
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-#include "wx/generic/treectrl.h"
+#include "wx/treectrl.h"
#include "wx/generic/imaglist.h"
#include "wx/settings.h"
#include "wx/log.h"
#include "wx/generic/imaglist.h"
#include "wx/settings.h"
#include "wx/log.h"
// wxTreeEvent
// -----------------------------------------------------------------------------
// wxTreeEvent
// -----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
-
wxTreeEvent::wxTreeEvent( wxEventType commandType, int id )
: wxNotifyEvent( commandType, id )
{
wxTreeEvent::wxTreeEvent( wxEventType commandType, int id )
: wxNotifyEvent( commandType, id )
{
event.SetEventObject( this );
// TODO : Here we don't send any selection mode yet !
event.SetEventObject( this );
// TODO : Here we don't send any selection mode yet !
- if ( GetEventHandler()->ProcessEvent( event ) && event.WasVetoed() )
+ if ( GetEventHandler()->ProcessEvent( event ) && !event.IsAllowed() )
int wxTreeCtrl::GetLineHeight(wxGenericTreeItem *item) const
{
int wxTreeCtrl::GetLineHeight(wxGenericTreeItem *item) const
{
- if (GetWindowStyleFlag() & wxTR_HAS_VARIABLE_ROW_HIGHT)
+ if (GetWindowStyleFlag() & wxTR_HAS_VARIABLE_ROW_HEIGHT)
return item->GetHeight();
else
return m_lineHeight;
return item->GetHeight();
else
return m_lineHeight;