Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-08-27 18:28:32 +0000
committerFelipe Heidrich2007-08-27 18:28:32 +0000
commitb782904635967999988ef9585c145bfe83ff9ada (patch)
tree4e7ed2f9d1608844b289aa634a5b59b912c385a7
parent1851f3e5d0668b5e44448e29212e4915714170b5 (diff)
downloadeclipse.platform.swt-b782904635967999988ef9585c145bfe83ff9ada.tar.gz
eclipse.platform.swt-b782904635967999988ef9585c145bfe83ff9ada.tar.xz
eclipse.platform.swt-b782904635967999988ef9585c145bfe83ff9ada.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java1
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java4
2 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java
index 712641899c..00aa31be61 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java
@@ -445,6 +445,7 @@ public class OS extends C {
public static final int CFS_POINT = 0x2;
public static final int CFS_RECT = 0x1;
public static final int CFS_CANDIDATEPOS = 0x0040;
+ public static final int CFS_EXCLUDE = 0x0080;
public static final int CF_EFFECTS = 0x100;
public static final int CF_INITTOLOGFONTSTRUCT = 0x40;
public static final int CF_SCREENFONTS = 0x1;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java
index 3c99b5dd17..ae9fc09832 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java
@@ -266,8 +266,10 @@ void resizeIME () {
int /*long*/ hIMC = OS.ImmGetContext (hwnd);
if (parent.isInlineIMEEnabled ()) {
CANDIDATEFORM lpCandidate = new CANDIDATEFORM ();
- lpCandidate.dwStyle = OS.CFS_CANDIDATEPOS;
+ lpCandidate.dwStyle = OS.CFS_EXCLUDE;
lpCandidate.ptCurrentPos = ptCurrentPos;
+ lpCandidate.rcArea = new RECT ();
+ OS.SetRect (lpCandidate.rcArea, ptCurrentPos.x, ptCurrentPos.y, ptCurrentPos.x + width, ptCurrentPos.y + height);
OS.ImmSetCandidateWindow (hIMC, lpCandidate);
} else {
RECT rect = new RECT ();

Back to the top