wxTreeCtrl::~wxTreeCtrl()
{
+ if (m_hilightBrush) delete m_hilightBrush;
+ if (m_anchor) delete m_anchor;
}
bool wxTreeCtrl::Create(wxWindow *parent, wxWindowID id,
if (!p->HasChildren()) p->m_hasChildren = TRUE;
- int ch = 0;
- GetClientSize( (int *) NULL, &ch );
+ int cw = 0, ch = 0;
+ GetClientSize( &cw, &ch );
PrepareDC( dc );
}
}
-void wxTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxPaintDC &dc, int level, int &y )
+void wxTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxDC &dc, int level, int &y )
{
int horizX = level*m_indent;
}
}
-void wxTreeCtrl::CalculateLevel( wxGenericTreeItem *item, wxPaintDC &dc, int level, int &y )
+void wxTreeCtrl::CalculateLevel( wxGenericTreeItem *item, wxDC &dc, int level, int &y )
{
int horizX = level*m_indent;