]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
fixed vertical scrollbar handling (broken by some relatively recent but unknown preci...
[wxWidgets.git] / 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"));
     }