diff options
author | Steve Northover <steve> | 2006-01-13 19:36:07 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2006-01-13 19:36:07 +0000 |
commit | c02b5e3de1ce6ea205b0d0a05d3282aed66e26e1 (patch) | |
tree | 814f401d6234e5cb459802e22a303e589150d0ca | |
parent | 12e45fb54f284260e5a8be971116e65fb533176e (diff) | |
download | eclipse.platform.swt-c02b5e3de1ce6ea205b0d0a05d3282aed66e26e1.tar.gz eclipse.platform.swt-c02b5e3de1ce6ea205b0d0a05d3282aed66e26e1.tar.xz eclipse.platform.swt-c02b5e3de1ce6ea205b0d0a05d3282aed66e26e1.zip |
123764 - Vertical table lines not redrawn on horizontal scroll
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | 15 |
1 files changed, 15 insertions, 0 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 43dd69854d..c26b173472 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 @@ -4314,6 +4314,21 @@ LRESULT WM_SYSCOLORCHANGE (int wParam, int lParam) { return result; } +LRESULT WM_HSCROLL (int wParam, int lParam) { + LRESULT result = super.WM_HSCROLL (wParam, lParam); + /* + * Bug in Windows. When an empty table is drawing grid lines + * and the user scrolls horizontally, the table does not redraw + * the newly exposed vertical grid lines. The fix is to redraw + * the table. + */ + if (OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0) == 0) { + int bits = OS.SendMessage (handle, OS.LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0); + if ((bits & OS.LVS_EX_GRIDLINES) != 0) OS.InvalidateRect (handle, null, true); + } + return result; +} + LRESULT WM_VSCROLL (int wParam, int lParam) { LRESULT result = super.WM_VSCROLL (wParam, lParam); /* |