I've created custom drawing handlers for a listview box. The source follows the msdn examples almost exactly and for the most part works like it should. The problem I'm having is the subitem text disappears when the item is moused over. The behaviour seems to be quite random, but happens a lot more frequently when the selected item is out of view. The listview is using full row selection, multiselection, and double buffering if any of that matters. Also the drawing code is available below. Any ideas what could be the cause of this?
Source: http://rafb.net/p/mK0zfY13.html
Source: http://rafb.net/p/mK0zfY13.html