This method is specific to version 3, or higher, of the OS/2 operating system.
This method inserts multiple objects into a container at one time.
#define INCL_WINWORKPLACE #include <os2.h> M_WPObject *somSelf; /* Pointer to the WPObject class object. */ HWND hwndCnr; /* Handle to the container window in which objects are to be inserted. */ PPOINTL pptlIcon; /* Pointer to the initial icon position of the first icon inserted. */ PVOID *pObjectArray; /* Pointer to an array of object pointers. */ PVOID pRecordParent; /* Pointer to the parent record. */ ULONG NumRecords; /* Number of records in pObjectArray to be inserted. */ BOOL rc; /* Success indicator. */ rc = _wpclsInsertMultipleObjects(somSelf, hwndCnr, pptlIcon, pObjectArray, pRecordParent, NumRecords);