Document that wxTreeCtrl::DeleteChildren() does send events
Contrary to what the documentation stated previously, this function does generate the wxEVT_TREE_DELETE_ITEM events for all the items being deleted, in both MSW and generic implementations. Update the documentation and add a new unit test checking that the behaviour really conforms to it.
This commit is contained in:
@@ -317,8 +317,10 @@ public:
|
||||
virtual void DeleteAllItems();
|
||||
|
||||
/**
|
||||
Deletes all children of the given item (but not the item itself). Note
|
||||
that this will @b not generate any events unlike Delete() method.
|
||||
Deletes all children of the given item (but not the item itself).
|
||||
|
||||
A @c wxEVT_TREE_DELETE_ITEM event will be generated for every item
|
||||
being deleted.
|
||||
|
||||
If you have called SetItemHasChildren(), you may need to call it again
|
||||
since DeleteChildren() does not automatically clear the setting.
|
||||
|
Reference in New Issue
Block a user