http://bugs.winehq.org/show_bug.cgi?id=24514
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com 2010-09-26 03:45:43 CDT --- (In reply to comment #3)
(In reply to comment #2)
So if there's no application that depends on this for now, I'm suggesting it to be fixed in tests and another todo test to be added that shows negative subitem index increasing.
Setting y=-1 stops the failures, but I'm not exactly sure how to do the "negative subitem index increasing" bit to be locale independent as I'm not 100% sure what it's doing.
You need LVM_GETITEMRECT and then 'y = (top - bottom)/2' to be placed half item height outside list visible area.
It does seem to be doing a calculation of the index by just dividing the y coordinate by a height (perhaps the height of an item), but exactly where the change from -1 to -2 and -2 to -3 (etc.) occurs seems perplexing to me.
Same way, try 'y = 3*(top - bottom)/2' and expect -2 as index. Item rectangle fully depends on selected font, that's why it's better to avoid hardcoded values.