summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-03-10 19:02:42 +0000
committerFelipe Heidrich <fheidric>2006-03-10 19:02:42 +0000
commitf520a8dcf7987a68442ef89495b4518db5c9b2f5 (patch)
tree89dd969b9f1419fcc5408c169c155c65f16cfe3c /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
parentf583b5839f2635fb53b19da7580dac5cb0826fec (diff)
downloadeclipse.platform.swt-f520a8dcf7987a68442ef89495b4518db5c9b2f5.tar.gz
eclipse.platform.swt-f520a8dcf7987a68442ef89495b4518db5c9b2f5.tar.xz
eclipse.platform.swt-f520a8dcf7987a68442ef89495b4518db5c9b2f5.zip
always use high level api to assure multiple handle widgets also work
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
index 13ae5d56b5..a185ab8a2e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
@@ -432,11 +432,7 @@ void showItem (int index) {
ExpandItem item = items [index];
Control control = item.control;
if (control != null && !control.isDisposed ()) {
- if (item.expanded) {
- OS.ShowWindow (control.handle, OS.SW_SHOW);
- } else {
- OS.ShowWindow (control.handle, OS.SW_HIDE);
- }
+ control.setVisible (item.expanded);
}
item.redraw (true);
layoutItems (index + 1, true);