Changeset 146 for trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI
- Timestamp:
- Jun 2, 2009, 5:40:15 PM (16 years ago)
- Location:
- trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/library/swt.c
r137 r146 376 376 if (pszName) releasePSZBytes(env, pszName, c_pszName); 377 377 if (pszClass) releasePSZBytes(env, pszClass, c_pszClass); 378 379 return hwnd; 380 } 381 382 JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_pm_OS_WinCreateWindow__ILorg_eclipse_swt_internal_pm_PSZ_2Lorg_eclipse_swt_internal_pm_PSZ_2IIIIIIIILorg_eclipse_swt_internal_pm_SLDCDATA_2I 383 (JNIEnv *env, jclass that, jint hwndParent, jobject pszClass, 384 jobject pszName, jint flStyle, jint x, jint y, jint cx, jint cy, jint hwndOwner, 385 jint hwndInsertBehind, jint id, jobject pCtlData, jint pPresParams) 386 { 387 PSZ c_pszClass = NULL; 388 PSZ c_pszName = NULL; 389 SLDCDATA c_pCtrlData, *c_ppCtrlData = NULL; 390 jint hwnd; 391 392 DEBUG_CALL("WinCreateWindow\n") 393 394 if (pszClass) c_pszClass = getPSZBytes(env, pszClass); 395 if (pszName) c_pszName = getPSZBytes(env, pszName); 396 if (pCtlData) 397 c_ppCtrlData = getSLDCDATAFields(env, pCtlData, &c_pCtrlData, &PGLOB(SLDCDATAFc)); 398 399 400 hwnd = (jint)WinCreateWindow((HWND)hwndParent, c_pszClass, c_pszName, flStyle, 401 x, y, cx, cy, hwndOwner, hwndInsertBehind, id, (PVOID)c_ppCtrlData, (PVOID)pPresParams); 402 403 if (pszName) releasePSZBytes(env, pszName, c_pszName); 404 if (pszClass) releasePSZBytes(env, pszClass, c_pszClass); 405 if (pCtlData) 406 setSLDCDATAFields(env, pCtlData, c_ppCtrlData, &PGLOB(SLDCDATAFc)); 378 407 379 408 return hwnd; -
trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/org/eclipse/swt/internal/pm/OS.java
r139 r146 2240 2240 PSZ pszName, int flStyle, int x, int y, int cx, int cy, int hwndOwner, 2241 2241 int hwndInsertBehind, int id, int pCtlData, int pPresParams); 2242 public static final native int WinCreateWindow (int hwndParent, PSZ pszClass, 2243 PSZ pszName, int flStyle, int x, int y, int cx, int cy, int hwndOwner, 2244 int hwndInsertBehind, int id, SLDCDATA pCtlData, int pPresParams); 2242 2245 public static final native boolean WinDestroyWindow (int hwnd); 2243 2246 public static final native int WinDefWindowProc (int hwnd, int ulMsgid,
Note:
See TracChangeset
for help on using the changeset viewer.