diff options
author | Veronika Irvine <veronika> | 2004-02-13 11:48:00 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2004-02-13 11:48:00 +0000 |
commit | 8b437fb3842f95560dedea9ef4177462cda26613 (patch) | |
tree | ff25be1c58868324766161f3d2750cf60bb953f9 | |
parent | 428214eba95c49844e8451c175a480459b24450c (diff) | |
download | eclipse.platform.swt-8b437fb3842f95560dedea9ef4177462cda26613.tar.gz eclipse.platform.swt-8b437fb3842f95560dedea9ef4177462cda26613.tar.xz eclipse.platform.swt-8b437fb3842f95560dedea9ef4177462cda26613.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | 8 |
1 files changed, 6 insertions, 2 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 f6b862a902..e23fa55587 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 @@ -2228,17 +2228,21 @@ public void showColumn (TableColumn column) { if (count <= 1 || !(0 <= index && index < count)) return; RECT rect = new RECT (); if (index == 0) { + // Can't get subitemrect for first column (with no item) + // so get subitemrect for second column and subtract width + // of first column. int width = OS.SendMessage (handle, OS.LVM_GETCOLUMNWIDTH, index, 0); rect.top = 1; rect.left = OS.LVIR_BOUNDS; OS.SendMessage (handle, OS.LVM_GETSUBITEMRECT, -1, rect); - rect.left = rect.left - width; - rect.right = rect.left + width; + rect.right = rect.left; + rect.left = rect.right - width; } else { rect.top = index; rect.left = OS.LVIR_BOUNDS; OS.SendMessage (handle, OS.LVM_GETSUBITEMRECT, -1, rect); } + RECT area = new RECT (); OS.GetClientRect (handle, area); if (rect.left < area.left) { |