Patricia Avigdor
June 25th, 1998, 11:54 AM
I have a splitter window included inside a CScrollView.
This static splitter window contains a CTreeView set with TVS_EDITLABELS.
When I start to edit a label in the TreeCtrl, the label is selected and I get the input focus. If I click again inside the text control, OnEndLabelEdit gets called and then I get a debug assertion failed. Normal behaviour would be that OnEndLabelEdit shouldn't be called and the label selection should just disappear (that's what happens in Windows Explorer).
If I click outside of the text label, OnEndLabelEdit gets called and no problem.
If I type characters no problem either.
What I've seen so far is that on the second click, OnActivateView is first called on the ScrollView. This disactivates the TreeView and I suppose calls OnEndLabelEdit. Then OnActivateView is called for the TreeView (too late).
Does anybody have an idea of what's wrong and how to work around this problem?
Thanks for your help,
Pat
This static splitter window contains a CTreeView set with TVS_EDITLABELS.
When I start to edit a label in the TreeCtrl, the label is selected and I get the input focus. If I click again inside the text control, OnEndLabelEdit gets called and then I get a debug assertion failed. Normal behaviour would be that OnEndLabelEdit shouldn't be called and the label selection should just disappear (that's what happens in Windows Explorer).
If I click outside of the text label, OnEndLabelEdit gets called and no problem.
If I type characters no problem either.
What I've seen so far is that on the second click, OnActivateView is first called on the ScrollView. This disactivates the TreeView and I suppose calls OnEndLabelEdit. Then OnActivateView is called for the TreeView (too late).
Does anybody have an idea of what's wrong and how to work around this problem?
Thanks for your help,
Pat