Hello, all! Here's my predicament:
I'm using a ListView control in virtual and OwnerDraw mode to display a number of items. Is there a way to test whether a certain item is visible (within the client area of the control) without triggering a draw event or a RetrieveVirtualItem event?
The problem is, I have a background thread that periodically adds more items to the listview. But for some reason, every time I add more items (increment VirtualListSize), it triggers a RetrieveVirtualItem for the last item added, even though it's nowhere near the visible range. And, of course, I only want to draw items that are actually visible.
Any ideas?