]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed treectrl bug
authorHarco de Hilster <harcoh@caos.kun.nl>
Mon, 8 Mar 1999 00:34:17 +0000 (00:34 +0000)
committerHarco de Hilster <harcoh@caos.kun.nl>
Mon, 8 Mar 1999 00:34:17 +0000 (00:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/framelayout/samples/demo/fl_demo.cpp

index ebe2ba716329d1809ec9bcc1ca7407cd4f85fbf6..eb083f57c105df1e23246ab5e321f442b2b717c6 100644 (file)
@@ -667,17 +667,17 @@ wxTreeCtrl* MyFrame::CreateTreeCtrl( const wxString& label )
 {
     wxTreeCtrl* pTree = new wxTreeCtrl( mpInternalFrm, -1 );
 
-    int rootid = pTree->AppendItem( (long)0, label, 0);
+    int rootid = pTree->AppendItem( (long)0, label, -1);
        
     if ( label[0] != 'X' )
     {
-        pTree->AppendItem(rootid, "Leaf1", 0);
-        pTree->AppendItem(rootid, "Leaf2", 0);
+        pTree->AppendItem(rootid, "Leaf1", -1);
+        pTree->AppendItem(rootid, "Leaf2", -1);
     }
     else
     {
-        pTree->AppendItem(rootid, "Scully", 0);
-        pTree->AppendItem(rootid, "Mulder", 0);
+        pTree->AppendItem(rootid, "Scully", -1);
+        pTree->AppendItem(rootid, "Mulder", -1);
     }
 
     return pTree;