On September 1, 2003 03:46 pm, Eric Pouech wrote:
configuration :
- a listview in autoarrange mode
- adding item one after the other
- say the first item is created with the selection (LVIS_SELECTED)
- some more items are inserted without the selection
- in some cases, the selection will move to the newly inserted item
instead of remaining on the first item (likely some internal index is not recalculated in autoarrange mode)
A few questions: -- LVS_OWNERDATA? (I guess not...) -- LVS_SORTASCENDING or LVS_SORTDESCENDING? -- LVS_OWNERDRAWFIXED? -- Do you use LPSTR_TEXTCALLBACK for the item text? -- Does a refresh fix the problem? -- Any pattern to the "some cases"? -- Do you use any callbacks?
How important is this to the functionality of the app. It would be a lot simpler for me to debug it, once I have the app in the tree (if this is for the app you were talking about, of course).