diff options
author | Steve Northover <steve> | 2004-02-12 00:59:54 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2004-02-12 00:59:54 +0000 |
commit | 01a683f904ffa102be3d828ad007a2a1ca78fdc3 (patch) | |
tree | e2d6ec4518e21584e4a6ae0f4f5fb40ecf59390d | |
parent | 4427fb8b2af508dab3081059c3c994a2a10e5844 (diff) | |
download | eclipse.platform.swt-01a683f904ffa102be3d828ad007a2a1ca78fdc3.tar.gz eclipse.platform.swt-01a683f904ffa102be3d828ad007a2a1ca78fdc3.tar.xz eclipse.platform.swt-01a683f904ffa102be3d828ad007a2a1ca78fdc3.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index aea915b485..5d23e31c0f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -3074,12 +3074,15 @@ LRESULT WM_CONTEXTMENU (int wParam, int lParam) { if (wParam != handle) return null; /* - * Feature in WM2003. SHRecognizeGesture sends a WM_CONTEXTMENU - * notification even when the flag SHRG_NOTIFY_PARENT is not set. - * This behaviour is undocumented and causes the context menu to be - * displayed twice on this platform. Previous WinCE versions - * don't support WM_CONTEXTMENU notifications. The workaround - * is to ignore WM_CONTEXTMENU notifications on all WinCE platforms. + * Feature in Windows. SHRecognizeGesture() sends an undocumented + * WM_CONTEXTMENU notification when the flag SHRG_NOTIFY_PARENT is + * not set. This causes the context menu to be displayed twice, + * once by the caller of SHRecognizeGesture() and once from this + * method. The fix is to ignore WM_CONTEXTMENU notifications on + * all WinCE platforms. + * + * NOTE: This only happens on WM2003. Previous WinCE versions did + * not support WM_CONTEXTMENU. */ if (OS.IsWinCE) return null; |