From f520a8dcf7987a68442ef89495b4518db5c9b2f5 Mon Sep 17 00:00:00 2001 From: Felipe Heidrich Date: Fri, 10 Mar 2006 19:02:42 +0000 Subject: always use high level api to assure multiple handle widgets also work --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java') 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); -- cgit