diff options
author | Christophe Cornu | 2003-10-31 15:43:50 +0000 |
---|---|---|
committer | Christophe Cornu | 2003-10-31 15:43:50 +0000 |
commit | b4e6b3e5c97b6f5f03205e2f5e49caf3a26bbe1b (patch) | |
tree | b202d5d63b74c4148a5b095b7592ce13a4788981 | |
parent | 24805dc1a472fa501912bfe277317d37689c2f18 (diff) | |
download | eclipse.platform.swt-b4e6b3e5c97b6f5f03205e2f5e49caf3a26bbe1b.tar.gz eclipse.platform.swt-b4e6b3e5c97b6f5f03205e2f5e49caf3a26bbe1b.tar.xz eclipse.platform.swt-b4e6b3e5c97b6f5f03205e2f5e49caf3a26bbe1b.zip |
42633
5 files changed, 44 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c index 98d00a8223..abaebd3fe7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c @@ -738,6 +738,21 @@ JNIEXPORT jint JNICALL OS_NATIVE(CreateSolidBrush) } #endif +#ifndef NO_CreateStreamOnHGlobal +JNIEXPORT jint JNICALL OS_NATIVE(CreateStreamOnHGlobal) + (JNIEnv *env, jclass that, jint arg0, jboolean arg1, jintArray arg2) +{ + jint *lparg2=NULL; + jint rc; + NATIVE_ENTER(env, that, "CreateStreamOnHGlobal\n") + if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL); + rc = (jint)CreateStreamOnHGlobal((HGLOBAL)arg0, (BOOL)arg1, (LPSTREAM *)lparg2); + if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); + NATIVE_EXIT(env, that, "CreateStreamOnHGlobal\n") + return rc; +} +#endif + #ifndef NO_CreateWindowExA JNIEXPORT jint JNICALL OS_NATIVE(CreateWindowExA) (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jbyteArray arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8, jint arg9, jint arg10, jobject arg11) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.h b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.h index 381e0d5782..6a7dddbab4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.h @@ -125,6 +125,7 @@ #define NO_CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONTA_2 #define NO_CreateFontIndirectA__I #define NO_CreatePolygonRgn +#define NO_CreateStreamOnHGlobal #define NO_CreateWindowExA #define NO_DefFrameProcA #define NO_DefFrameProcW diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/COM.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/COM.java index 97948432e5..e8a45c5847 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/COM.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/COM.java @@ -100,7 +100,7 @@ public class COM extends OS { //public static final GUID IIDIPersistPropertyBag = IIDFromString("{37D84F60-42CB-11CE-8135-00AA004BB851}"); //$NON-NLS-1$ public static final GUID IIDIPersistStorage = IIDFromString("{0000010A-0000-0000-C000-000000000046}"); //$NON-NLS-1$ public static final GUID IIDIPersistStream = IIDFromString("{00000109-0000-0000-C000-000000000046}"); //$NON-NLS-1$ - //public static final GUID IIDIPersistStreamInit = IIDFromString("{7FD52380-4E07-101B-AE2D-08002B2EC713}"); //$NON-NLS-1$ + public static final GUID IIDIPersistStreamInit = IIDFromString("{7FD52380-4E07-101B-AE2D-08002B2EC713}"); //$NON-NLS-1$ //public static final GUID IIDIPicture = IIDFromString("{7BF80980-BF32-101A-8BBB-00AA00300CAB}"); //$NON-NLS-1$ //public static final GUID IIDIPictureDisp = IIDFromString("{7BF80981-BF32-101A-8BBB-00AA00300CAB}"); //$NON-NLS-1$ //public static final GUID IIDIPropertyBag = IIDFromString("{55272A00-42CB-11CE-8135-00AA004BB851}"); //$NON-NLS-1$ diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/IPersistStreamInit.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/IPersistStreamInit.java new file mode 100644 index 0000000000..967834a748 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/IPersistStreamInit.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.swt.internal.ole.win32; + +public class IPersistStreamInit extends IPersist +{ +public IPersistStreamInit(int address) { + super(address); +} + +public int Load(int pStm) { + return COM.VtblCall(5, address, pStm); +} + +public int InitNew() { + return COM.VtblCall(8, address); +} +}
\ No newline at end of file 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 1d7fff232d..f7de57fc4c 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 @@ -2041,6 +2041,7 @@ public static final native int CreatePolygonRgn(int[] lppt, int cPoints, int fnP public static final native int CreatePopupMenu (); public static final native int CreateRectRgn (int left, int top, int right, int bottom); public static final native int CreateSolidBrush (int colorRef); +public static final native int CreateStreamOnHGlobal(int hGlobal, boolean fDeleteOnRelease, int[] ppstm); public static final native int CreateWindowExW (int dwExStyle, char [] lpClassName, char [] lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hWndParent, int hMenu, int hInstance, CREATESTRUCT lpParam); public static final native int CreateWindowExA (int dwExStyle, byte [] lpClassName, byte [] lpWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hWndParent, int hMenu, int hInstance, CREATESTRUCT lpParam); public static final native int DeferWindowPos (int hWinPosInfo, int hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags); |