From a0c92515a5dd09286169b720ccbb60ccfc5bf862 Mon Sep 17 00:00:00 2001 From: Christophe Cornu Date: Mon, 14 Apr 2003 15:49:43 +0000 Subject: PR35837 --- bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c | 11 +++++++++++ .../win32/org/eclipse/swt/internal/win32/OS.java | 2 ++ 2 files changed, 13 insertions(+) (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/win32') diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c index ba63a7197e..6d2f93381f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c @@ -174,6 +174,7 @@ #define NO_SendMessageA__II_3I_3I #define NO_SendMessageW__IIILorg_eclipse_swt_internal_win32_TOOLINFO_2 #define NO_SetDIBColorTable +#define NO_SetErrorMode #define NO_SetMenu #define NO_SetMenuDefaultItem #define NO_SetMenuInfo @@ -6491,6 +6492,16 @@ JNIEXPORT jint JNICALL OS_NATIVE(SetDIBColorTable) } #endif /* NO_SetDIBColorTable */ +#ifndef NO_SetErrorMode +JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_win32_OS_SetErrorMode + (JNIEnv *env, jclass that, jint arg0) +{ + DEBUG_CALL("SetErrorMode\n") + + return (jint)SetErrorMode(arg0); +} +#endif /* NO_SetErrorMode */ + #ifndef NO_SetFocus JNIEXPORT jint JNICALL OS_NATIVE(SetFocus) (JNIEnv *env, jclass that, jint arg0) 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 146f43ae14..6b9fa8cbe4 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 @@ -777,6 +777,7 @@ public class OS { public static final int SC_SIZE = 0xf000; public static final int SC_TASKLIST = 0xf130; public static final int SC_VSCROLL = 0xf070; + public static final int SEM_FAILCRITICALERRORS = 0x1; public static final int SF_RTF = 0x2; public static final int SHCMBF_HIDDEN = 0x2; public static final int SHCMBM_OVERRIDEKEY = OS.WM_USER + 403; @@ -2370,6 +2371,7 @@ public static final native int SetClipboardData (int uFormat, int hMem); public static final native int SetCursor (int hCursor); public static final native boolean SetCursorPos (int X, int Y); public static final native int SetDIBColorTable (int hdc, int uStartIndex, int cEntries, byte[] pColors); +public static final native int SetErrorMode (int uMode); public static final native int SetFocus (int hWnd); public static final native boolean SetForegroundWindow (int hWnd); public static final native int SetLayout (int hdc, int dwLayout); -- cgit v1.2.3