| I'm using a CBCGPTreeCtrlEx to hold some data that is updated frequently (~500 msec intervals). The data is held in a tree view (i.e. many rows have children) and so I'm using things like GetParentItem(), GetNextSiblingItem(), etc. while updating.
The problem arises when a user clicks a column to sort. I need some way to know when sorting is taking place so I can lock my view which will hold off updates until the sort is complete. I'm looking for the best way to know when a sort starts / stops in my object which inherits from CBCGPTreeCtrlEx.
Also, bonus question: I convert this view from flat view to tree view. Sometimes multiple rows get selected and stay selected. I haven't looked in to this yet, but is this a common problem? I'm thinking maybe I'm supposed to handle this myself? i.e. find out which row is selected, do my conversion, deselect any rows, then reselect the originally selected (full) row? Seems hacky to me, I'm thinking there's more to this.
Thank you for any input.