]> git.saurik.com Git - wxWidgets.git/commitdiff
use LVSICF_NOINVALIDATEALL in SetItemCount() to reduce flicker
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Oct 2003 11:19:18 +0000 (11:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Oct 2003 11:19:18 +0000 (11:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index fc54c0de72e3941d4c81ecda96da44893c8da51f..c6b15c64beb960da06f8280ca1ff99341df9a84f 100644 (file)
@@ -2460,7 +2460,8 @@ void wxListCtrl::SetItemCount(long count)
 {
     wxASSERT_MSG( IsVirtual(), _T("this is for virtual controls only") );
 
-    if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count, LVSICF_NOSCROLL) )
+    if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count,
+                        LVSICF_NOSCROLL | LVSICF_NOINVALIDATEALL) )
     {
         wxLogLastError(_T("ListView_SetItemCount"));
     }