Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2007-05-16 14:08:17 +0000
committerSteve Northover2007-05-16 14:08:17 +0000
commit4f1247a1e80ad6c4c99102206cf68f788489e321 (patch)
tree1bd675efaecf6c8e95d20b358691edb51de6ec6d
parent04e84732194a675f3b3be7e90dd720df492255d8 (diff)
downloadeclipse.platform.swt-4f1247a1e80ad6c4c99102206cf68f788489e321.tar.gz
eclipse.platform.swt-4f1247a1e80ad6c4c99102206cf68f788489e321.tar.xz
eclipse.platform.swt-4f1247a1e80ad6c4c99102206cf68f788489e321.zip
187215 - Enabling owner draw removes horizontal scrollbar
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java2
1 files changed, 1 insertions, 1 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 7951901150..475eec5c23 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
@@ -194,7 +194,7 @@ void _addListener (int eventType, Listener listener) {
* explicitly hide the scroll bar.
*/
int count = OS.SendMessage (handle, OS.TVM_GETCOUNT, 0, 0);
- if (count != 0) {
+ if (count != 0 && (bits & OS.TVS_NOHSCROLL) != 0) {
if (!OS.IsWinCE) OS.ShowScrollBar (handle, OS.SB_HORZ, false);
}
}

Back to the top