Changeset 227 for trunk/src


Ignore:
Timestamp:
Nov 16, 2009, 1:27:58 PM (16 years ago)
Author:
lpino
Message:
  • New WinSendMsg overloading for MLM_QUERYFORMATRECT message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/library/swt.c

    r222 r227  
    11/*
    22 * OS/2 version.
    3  * Copyright (c) 2002, 2008 EclipseOS2 Team.
     3 * Copyright (c) 2002, 2009 EclipseOS2 Team.
    44 */
    55
     
    484484
    485485    return (jint)WinSendMsg((HWND)hwnd, ulMsgid, (MPARAM)mpParam1, (MPARAM)mpParam2);
     486}
     487
     488JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_pm_OS_WinSendMsg__II_3II
     489        (JNIEnv *env, jclass that, jint hwnd, jint ulMsgid, jintArray mpParam1, jint mpParam2)
     490{
     491        jint *c_pptl = NULL;
     492        jint rc;
     493        DEBUG_CALL("WinSendMsg\n")
     494        if (mpParam1) c_pptl = (*env)->GetIntArrayElements(env, mpParam1, NULL);
     495       
     496        rc = (jint)WinSendMsg((HWND)hwnd, ulMsgid, (PPOINTL)c_pptl, (MPARAM)mpParam2);
     497       
     498        if (mpParam1) (*env)->ReleaseIntArrayElements(env, mpParam1, c_pptl, 0);
     499
     500        return rc;
     501       
    486502}
    487503
Note: See TracChangeset for help on using the changeset viewer.