Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2006-12-08 10:56:32 -0500
committerSteve Northover2006-12-08 10:56:32 -0500
commitb117f30ce403c1d7541992a677a87fd888f2fe71 (patch)
tree3505da7a268c58abd323d41b8b370e4e2f7fc952
parent3e0f98cbd7a8e9137a98e20e5a9e7fa9bea9fe01 (diff)
downloadeclipse.platform.swt-b117f30ce403c1d7541992a677a87fd888f2fe71.tar.gz
eclipse.platform.swt-b117f30ce403c1d7541992a677a87fd888f2fe71.tar.xz
eclipse.platform.swt-b117f30ce403c1d7541992a677a87fd888f2fe71.zip
test operating system bits for multi-line
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index 5f8b2e05d5..ba669ab8b4 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -1693,7 +1693,8 @@ public void setText (String string) {
* notify the application that the text has changed.
* The fix is to send the event.
*/
- if ((style & SWT.MULTI) != 0) {
+ int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
+ if ((bits & OS.ES_MULTILINE) != 0) {
sendEvent (SWT.Modify);
// widget could be disposed at this point
}
@@ -1863,7 +1864,8 @@ int windowProc () {
int windowProc (int hwnd, int msg, int wParam, int lParam) {
if (msg == OS.EM_UNDO) {
- if ((style & SWT.SINGLE) != 0) {
+ int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
+ if ((bits & OS.ES_MULTILINE) == 0) {
LRESULT result = wmClipboard (OS.EM_UNDO, wParam, lParam);
if (result != null) return result.value;
return callWindowProc (hwnd, OS.EM_UNDO, wParam, lParam);

Back to the top