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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user