summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2008-01-14 18:50:31 +0000
committerCarolyn MacLeod <carolyn>2008-01-14 18:50:31 +0000
commit5d55ef525ae3947cb4bd8a8003040f5ef0655b93 (patch)
tree8f614d9d37d30700b7606c02323ce6a75cdce2e9 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
parent5ecff1526c12811c9f5eb1e8ae67e33f407efce7 (diff)
downloadeclipse.platform.swt-5d55ef525ae3947cb4bd8a8003040f5ef0655b93.tar.gz
eclipse.platform.swt-5d55ef525ae3947cb4bd8a8003040f5ef0655b93.tar.xz
eclipse.platform.swt-5d55ef525ae3947cb4bd8a8003040f5ef0655b93.zip
check WinCE
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
index 24896595d9..deac2b7567 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
@@ -951,7 +951,9 @@ void setSelection (int value, boolean setPos, boolean setText, boolean notify) {
TCHAR buffer = new TCHAR (getCodePage (), string, true);
OS.SetWindowText (hwndText, buffer);
OS.SendMessage (hwndText, OS.EM_SETSEL, 0, -1);
- OS.NotifyWinEvent (OS.EVENT_OBJECT_FOCUS, hwndText, OS.OBJID_CLIENT, 0);
+ if (!OS.IsWinCE) {
+ OS.NotifyWinEvent (OS.EVENT_OBJECT_FOCUS, hwndText, OS.OBJID_CLIENT, 0);
+ }
}
if (notify) postEvent (SWT.Selection);
}