// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
bool wxTreeCtrl::Create(wxWindow *parent,
wxWindowID id, const wxPoint& pos, const wxSize& size,
- long style, const wxValidator& validator, const wxString& name)
+ long style, const wxValidator& wxVALIDATOR_PARAM(validator),
+ const wxString& name)
{
m_imageListNormal = NULL;
m_imageListState = NULL;
m_textCtrl = NULL;
SetName(name);
+#if wxUSE_VALIDATORS
SetValidator(validator);
+#endif
SetParent(parent);
m_windowStyle = style;
- m_windowId = (id == -1) ? NewControlId() : id;
+ m_windowId = (id == wxID_ANY) ? NewControlId() : id;
if (parent)
parent->AddChild(this);
}
// Attributes
-int wxTreeCtrl::GetCount() const
+unsigned int wxTreeCtrl::GetCount() const
{
// TODO
return 0;
m_code = 0;
m_oldItem = 0;
}
-