diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java index 8a712c4b36..31a6046d26 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java @@ -2194,7 +2194,8 @@ public void setItemCount (int count) { setRedraw (false); removeAll (); if (isVirtual) { - OS.SendMessage (handle, OS.LVM_SETITEMCOUNT, count, 0); + int flags = OS.LVSICF_NOINVALIDATEALL | OS.LVSICF_NOSCROLL; + OS.SendMessage (handle, OS.LVM_SETITEMCOUNT, count, flags); count = OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0); /* * Bug in Windows. When LVM_SETITEMCOUNT is sent to a table |