Win32lib: setLVItem annoyance (a little bug actually)
- Posted by Guillermo Bonvehi <gbonvehi at gmail.com> May 13, 2007
- 656 views
Hi all again, I had to use listview for a program that handle a lot of clients data, so I toyed a little bit with addLVItem and setLVItem. The last one is faster when updating so I was choosing each based on the amount of data that was going to be updated. I first tought it was a error on my code, but doing a little of research trough the code I saw that addLVItem substracts 1 from iIcon and setLVItem doesn't. I'm just using setLVItem (lvLista, LVIF_IMAGE,1,1,0,0,"",Icono-1,0) right now, but a better solution if we follow win32lib's style would be to sub it on struct_LVITEM as it's done for row and columns numbers (addLVItem should be changed too in that case). Maybe this can be "fixed" on next release. Glad to read you all. Best regards, Guillermo Bonvehi - AKA: Caballero Rojo