diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 73d138f1e3..3086c45c9b 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -2350,7 +2350,7 @@ void wxListCtrl::SetItemCount(long count) { wxASSERT_MSG( IsVirtual(), _T("this is for virtual controls only") ); - if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count, 0) ) + if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count, LVSICF_NOSCROLL) ) { wxLogLastError(_T("ListView_SetItemCount")); }