使用虛擬列表時,每次查完數據之后要調用SetItemCount,則這會引起控件刷新,造成閃爍,應該調用
SetItemCountEx(100,LVSICF_NOSCROLL|LVSICF_NOINVALIDATEALL);
? LVSICF_NOINVALIDATEALL The list view control will not repaint unless affected items are currently in view. This is the default value.
? LVSICF_NOSCROLL The list view control will not change the scroll position when the item count changes.
? 但是,LVSICF_NOSCROLL在有皮膚存在時是無效的,會在滾動條位置引起輕微的閃爍.