PATCH: Treeview control corruption when inserting at TVI_FIRST

Adam Gundy arg at cyberscience.com
Fri May 2 11:19:13 CDT 2003


When items are inserted in a partially populated treeview (whose current
first child is the first visible item) using TREEVIEW_InsertItemA(), the
first visible item is not correctly updated.

The result is a big blank space at the top of the control, then a whole load
of items drawn on top of one another...

Also, the first visible item is sometimes used to calculate the location of other items
when it has been freed (making valgrind shout).

The attached patch fixes both problems.


Seeya,
 Adam
--
Real Programmers don't comment their code. If it was hard to write,
it should be hard to read, and even harder to modify.
These are all my own opinions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: treeview.patch
Type: application/octet-stream
Size: 2039 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030502/0a460ec2/treeview.obj


More information about the wine-patches mailing list