Variable item height in TreeView gives broken lines <p>Wee.</p> <p>So I finally figured out how the iIntegral member of TVITEMEX works. The MSDN docs didn't think to mention that setting it while inserting an item has no effect, but setting it after the item is inserted works. Yay!</p> <p>However, when using the TVS_HASLINES style with items of variable height, the lines are only drawn for the top part of an item with iIntegral > 1. E.g. if I set TVS_HASLINES and TVS</p> <p><a href="http://i49.tinypic.com/24o8wwk.png" rel="nofollow noreferrer">Here's what it looks like</a> (can't post images WTF?)</p> <p>Should I manually draw more of the lines in response to NM_CUSTOMDRAW or something?</p>