diff options
author | Steve Northover <steve> | 2007-05-15 15:23:41 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2007-05-15 15:23:41 +0000 |
commit | a5c20d80e0285a26a2e9e8c9976c541b30282fab (patch) | |
tree | 9cef0cb643bf5e67635512bba3ebbe328257f38b /bundles | |
parent | 722c025dd8f468792402e2ab95037be6017f46b8 (diff) | |
download | eclipse.platform.swt-a5c20d80e0285a26a2e9e8c9976c541b30282fab.tar.gz eclipse.platform.swt-a5c20d80e0285a26a2e9e8c9976c541b30282fab.tar.xz eclipse.platform.swt-a5c20d80e0285a26a2e9e8c9976c541b30282fab.zip |
184916 - Variables view not painted correctly after column resize
Diffstat (limited to 'bundles')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java index 87b2d2334b..b5eb6fb882 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java @@ -6524,13 +6524,15 @@ LRESULT wmNotify (NMHDR hdr, int wParam, int lParam) { OS.SendMessage (hwndHeader, OS.HDM_GETITEMRECT, phdn.iItem, headerRect); int gridWidth = linesVisible ? GRID_WIDTH : 0; rect.left = headerRect.right - gridWidth; + HDITEM oldItem = new HDITEM (); + oldItem.mask = OS.HDI_WIDTH; + OS.SendMessage (hwndHeader, OS.HDM_GETITEM, phdn.iItem, oldItem); + int deltaX = newItem.cxy - oldItem.cxy; if (explorerTheme || (findImageControl () != null || hooks (SWT.EraseItem) || hooks (SWT.PaintItem))) { OS.InvalidateRect (handle, rect, true); + OS.OffsetRect (rect, deltaX, 0); + OS.InvalidateRect (handle, rect, true); } else { - HDITEM oldItem = new HDITEM (); - oldItem.mask = OS.HDI_WIDTH; - OS.SendMessage (hwndHeader, OS.HDM_GETITEM, phdn.iItem, oldItem); - int deltaX = newItem.cxy - oldItem.cxy; int flags = OS.SW_INVALIDATE | OS.SW_ERASE; OS.ScrollWindowEx (handle, deltaX, 0, rect, null, 0, null, flags); } |