I have a Dialog with a ListView Control on it.
I have enabled editing of Subitems by overriding the OnBeginLabelEdit and OnEndLabelEdit and only allow editing if a subitem is clicked and not the actual item.
Then I subclass the edit control and place the edit control in the correct place over the subitem.
This all works great apart from 2 things in order of priority.
1. When the edit box appears and allows editing of subitem text the actual item text disappears until editing is finished.
2. The subitem original text is still there behind my edit control so it can be seen if the edit control text gets smaller than it was to begin with.
Does anyone know how i can get around theses issues. I am sure that the first is to do with the subclassing and repainting of the CListCtrl.
Thanks to anyone who can help.
Chris
I have enabled editing of Subitems by overriding the OnBeginLabelEdit and OnEndLabelEdit and only allow editing if a subitem is clicked and not the actual item.
Then I subclass the edit control and place the edit control in the correct place over the subitem.
This all works great apart from 2 things in order of priority.
1. When the edit box appears and allows editing of subitem text the actual item text disappears until editing is finished.
2. The subitem original text is still there behind my edit control so it can be seen if the edit control text gets smaller than it was to begin with.
Does anyone know how i can get around theses issues. I am sure that the first is to do with the subclassing and repainting of the CListCtrl.
Thanks to anyone who can help.
Chris