From e0dc8253e1a2f538ba12abc80f47deb2a68e0f0c Mon Sep 17 00:00:00 2001 From: Steve Northover Date: Mon, 22 Mar 2004 22:50:26 +0000 Subject: *** empty log message *** --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bundles') 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 -- cgit