wxTreeCtrl::Delete() bug corrected, sample expanded to test it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,16 +56,16 @@ public:
|
||||
void OnSelChanging(wxTreeEvent& event);
|
||||
void OnKeyDown(wxTreeEvent& event);
|
||||
|
||||
void GetItemsRecursively(const wxTreeItemId& idParent, long cookie);
|
||||
void GetItemsRecursively(const wxTreeItemId& idParent, long cookie);
|
||||
|
||||
void AddTestItemsToTree(size_t numChildren,
|
||||
size_t depth);
|
||||
|
||||
private:
|
||||
void AddItemsRecursively(const wxTreeItemId& idParent,
|
||||
size_t nChildren,
|
||||
size_t depth,
|
||||
size_t folder);
|
||||
|
||||
void AddTestItemsToTree(size_t numChildren,
|
||||
size_t depth);
|
||||
size_t folder);
|
||||
|
||||
wxImageList *m_imageListNormal;
|
||||
|
||||
@@ -84,6 +84,9 @@ public:
|
||||
void OnQuit(wxCommandEvent& event);
|
||||
void OnAbout(wxCommandEvent& event);
|
||||
void OnDump(wxCommandEvent& event);
|
||||
void OnDelete(wxCommandEvent& event);
|
||||
void OnDeleteAll(wxCommandEvent& event);
|
||||
void OnRecreate(wxCommandEvent& event);
|
||||
|
||||
private:
|
||||
MyTreeCtrl *m_treeCtrl;
|
||||
@@ -97,6 +100,9 @@ enum
|
||||
TreeTest_Quit,
|
||||
TreeTest_About,
|
||||
TreeTest_Dump,
|
||||
TreeTest_Delete,
|
||||
TreeTest_DeleteAll,
|
||||
TreeTest_Recreate,
|
||||
TreeTest_Ctrl = 100
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user