I have a program in which a listview in detail view is displayed on a not directly visible tab. I add a load of items to it (around 33000) and then focus the tab on which it is. At that time, it sends out 33000 ItemCheck events, one for each item, in which it deselects it. The items were added nonchecked (verified).
My problem is that each ItemCheck event has to redraw a complex structure, which takes about a second to two seconds for 33000 items. If it does that for each ItemCheck event, it takes around a workday to actually reach the tab opposed to a second. That's kind of unacceptable performance.
Is there a way to not make it send out these pointless ItemCheck events or is it something I'm forced to hack around?
My problem is that each ItemCheck event has to redraw a complex structure, which takes about a second to two seconds for 33000 items. If it does that for each ItemCheck event, it takes around a workday to actually reach the tab opposed to a second. That's kind of unacceptable performance.
Is there a way to not make it send out these pointless ItemCheck events or is it something I'm forced to hack around?