I was using the DeleteAllItems() function in OnNewDocumnent() and in OnOpenDocument() and it didn't work. Now I've moved it into DeleteContents() and is working perfectly. Can you explain me why is that? It seemed to be more logically that the function would be in OnNewDocumnent() and...
I'm sorry. It was my fault I didn't gave details. My code is exactly like the one you gave me.
The thing is that I don't always get an error. When I open a new document or an old one I try to delete all the items in the list. If the last item is selected, the list is cleared and nothing...
I get an error when tryng to clear the list.
When I call:
GetTreeCtrl().DeleteAllItems();
I get a debug assertion error.
I'd appreciate if you could help me.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.