Getting closer to working tree/list wxDataViewCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-07-05 19:15:03 +00:00
parent 50b2d54446
commit d2505ba254
2 changed files with 36 additions and 9 deletions

View File

@@ -191,6 +191,15 @@ public:
}
virtual wxDataViewItem GetNthChild( const wxDataViewItem &parent, unsigned int n ) const
{
if (!parent.IsOk())
{
// root node
if (n == 0)
return wxDataViewItem( 1 );
return wxDataViewItem( 0 );
}
int ID = parent.GetID();
switch (ID)
{