summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-07-15 21:10:30 +0000
committerFelipe Heidrich <fheidric>2009-07-15 21:10:30 +0000
commit7f0e3613fce19fc2b73557ea5e61afd48dec973b (patch)
treecc2875f1f1bf79b525ec12963dd7c83550858599 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
parent1b3a8f5d9fb17a3d903cb22dc74b8023b7dd4890 (diff)
downloadeclipse.platform.swt-7f0e3613fce19fc2b73557ea5e61afd48dec973b.tar.gz
eclipse.platform.swt-7f0e3613fce19fc2b73557ea5e61afd48dec973b.tar.xz
eclipse.platform.swt-7f0e3613fce19fc2b73557ea5e61afd48dec973b.zip
improved Bug 283022: Double-clicking on a Label with text copies the Label's text to the Clipboard
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
index f1efb73157..7bdb283d16 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
@@ -110,11 +110,10 @@ int /*long*/ callWindowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, in
* clipboard. This is unwanted. The fix is to avoid
* calling the label window proc.
*/
- switch (msg) {
- case OS.WM_LBUTTONDBLCLK:
- if (OS.WIN32_VERSION >= OS.VERSION(6, 1)) {
- return OS.DefWindowProc (hwnd, msg, wParam, lParam);
- }
+ if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION(6, 1)) {
+ switch (msg) {
+ case OS.WM_LBUTTONDBLCLK: return OS.DefWindowProc (hwnd, msg, wParam, lParam);
+ }
}
return OS.CallWindowProc (LabelProc, hwnd, msg, wParam, lParam);
}