diff options
author | Steve Northover <steve> | 2007-03-16 14:47:48 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2007-03-16 14:47:48 +0000 |
commit | 2cba2e625f96400503c4341fce768a5e326df1b0 (patch) | |
tree | 66fd71aecf6a3209c38591022aca3853682dcedb | |
parent | 3959f235ad7f444b4949c9f45ab22f70a60625eb (diff) | |
download | eclipse.platform.swt-2cba2e625f96400503c4341fce768a5e326df1b0.tar.gz eclipse.platform.swt-2cba2e625f96400503c4341fce768a5e326df1b0.tar.xz eclipse.platform.swt-2cba2e625f96400503c4341fce768a5e326df1b0.zip |
177531 - Custom draw problems with focus item in Tree and Table
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java | 4 |
1 files changed, 2 insertions, 2 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 be9fa499bc..4471123e74 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 @@ -866,7 +866,7 @@ LRESULT CDDS_ITEMPOSTPAINT (NMTVCUSTOMDRAW nmcd, int wParam, int lParam) { if ((uiState & OS.UISF_HIDEFOCUS) == 0) { int hItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_CARET, 0); if (hItem == item.handle) { - if (!ignoreDrawFocus && (hooks (SWT.PaintItem) || findImageControl () != null)) { + if (!ignoreDrawFocus && findImageControl () != null) { if ((style & SWT.FULL_SELECTION) != 0) { RECT focusRect = new RECT (); OS.SetRect (focusRect, nmcd.left, nmcd.top, nmcd.right, nmcd.bottom); @@ -881,7 +881,7 @@ LRESULT CDDS_ITEMPOSTPAINT (NMTVCUSTOMDRAW nmcd, int wParam, int lParam) { focusRect.left = 0; RECT rect = new RECT (); OS.GetClientRect (handle, rect); - focusRect.right = Math.max (width, rect.right); + focusRect.right = Math.max (width, rect.right - OS.GetSystemMetrics (OS.SM_CXVSCROLL)); } OS.DrawFocusRect (hDC, focusRect); } else { |