Wednesday 15 July 2015

.net - Testing whether item is visible in virtual ListView -


I am using a ListView control in virtual and master mode to display a number of items. Is there a way to test whether a certain object (within the customer's area of ​​control) attracts, triggers without a drag event or a retrieval event event?

The problem is, I have a background thread that connects periodically to more items in the list view but for some reason, every time I add more items (VirtualLSIs Virtual), this past Turns on a recovery virtual item for the item, even if it's not anywhere near the view threshold. And, of course, I only want to attract items that are actually visible.

Any thoughts?

On virtual lists, Windows runs the retrieveVirtualItem program in many codes - and They are different between XP, Vista and Win 7.

If your goal is to reduce the number of Recover Virtualization , then you are out of luck.

If your goal is to reduce the number of redraws required for your owner draws rows, then you can better and more precisely optimize the reconstruction. For example, you can capture the rectangle of the damaged area in the WM_PAINT event, and then use it to determine whether the subtitle was damaged.

Or you can use - an open source casing around an NIT WinForms ListView - which is already dealt with this problem if you are allowing horizontal scrolling and rearranging columns You want to use > ObjectListView - Reason for reasons.


No comments:

Post a Comment