1. GetNextChild() bug fixed in generic version

2. GetChildrenCount(bool recursive) added to all versions, implemented
   only in the generic one so far
3. Sample slightly modified to show new function


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-11-13 20:47:22 +00:00
parent 8aa04e8bf1
commit 4832f7c06c
7 changed files with 160 additions and 41 deletions

View File

@@ -56,10 +56,13 @@ public:
void OnSelChanging(wxTreeEvent& event);
void OnKeyDown(wxTreeEvent& event);
void GetItemsRecursively(const wxTreeItemId& idParent, long cookie);
private:
void AddItemsRecursively(const wxTreeItemId& idParent,
size_t nChildren,
size_t depth);
size_t depth,
size_t folder);
void AddTestItemsToTree(size_t numChildren,
size_t depth);
@@ -80,6 +83,7 @@ public:
// menu callbacks
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnDump(wxCommandEvent& event);
private:
MyTreeCtrl *m_treeCtrl;
@@ -92,6 +96,7 @@ enum
{
TreeTest_Quit,
TreeTest_About,
TreeTest_Dump,
TreeTest_Ctrl = 100
};