diff options
author | Christophe Cornu <ccornu> | 2004-02-12 00:09:57 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2004-02-12 00:09:57 +0000 |
commit | 4427fb8b2af508dab3081059c3c994a2a10e5844 (patch) | |
tree | a606c5f137473bfcf4ccbf732d66497020bb88b4 | |
parent | cddde9a2f0181dfa8ce64390b203a88ea7485924 (diff) | |
download | eclipse.platform.swt-4427fb8b2af508dab3081059c3c994a2a10e5844.tar.gz eclipse.platform.swt-4427fb8b2af508dab3081059c3c994a2a10e5844.tar.xz eclipse.platform.swt-4427fb8b2af508dab3081059c3c994a2a10e5844.zip |
48273
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 10 |
1 files changed, 10 insertions, 0 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 67a5a2bbfe..aea915b485 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,6 +3074,16 @@ 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. + */ + if (OS.IsWinCE) return null; + + /* * Feature in Windows. When the user presses WM_NCRBUTTONUP, * a WM_CONTEXTMENU message is generated. This happens when * the user releases the mouse over a scroll bar. Normally, |