Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2002-06-14 18:22:03 +0000
committerSilenio Quarti2002-06-14 18:22:03 +0000
commita3635cd9e0dd7879bc3b3bd73040e191dbd7da50 (patch)
treedd4cd1a1810c36c91fe719e51ff74adf2b50c791 /bundles
parenteb4c77681838ea183c756eed2733c0acab28cd20 (diff)
downloadeclipse.platform.swt-a3635cd9e0dd7879bc3b3bd73040e191dbd7da50.tar.gz
eclipse.platform.swt-a3635cd9e0dd7879bc3b3bd73040e191dbd7da50.tar.xz
eclipse.platform.swt-a3635cd9e0dd7879bc3b3bd73040e191dbd7da50.zip
20209
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
index aa46ba11a0..44905cca14 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
@@ -901,23 +901,6 @@ public void setVisible (boolean visible) {
if (!success && GetMenuItemCount (handle) == 0) {
OS.SendMessage (hwndParent, OS.WM_MENUSELECT, 0xFFFF0000, 0);
}
- /*
- * Feature in Windows. Because TrackPopupMenu() runs a
- * modal menu loop and does not return until an item is
- * selected or the user cancels the menu and SWT.Selection
- * events are posted, they won't run until execution returns
- * to the event loop. While this is not strictly incorrect,
- * it means that code that relies on the modal menu loop
- * to decide when to destroy the menu will destroy the menu
- * before the SWT.Selection event is delivered. The fix is
- * to run the deferred events after the menu is hidden.
- */
- MSG msg = new MSG ();
- if (OS.PeekMessage (msg, hwndParent, OS.WM_COMMAND, OS.WM_COMMAND, OS.PM_REMOVE)) {
- OS.DispatchMessage (msg);
- }
- Display display = getDisplay ();
- display.runDeferredEvents ();
}
}

Back to the top