The wpclsInsertMultipleObjects method is used to insert multiple objects into a container window at one time. The following shows the syntax of wpclsInsertMultipleObjects:

#define INCL_WINWORKPLACE
#include <os2.h>

BOOL wpclsInsertMultipleObjects(M_WPObject *self,
                                HWND hwndCnr,
                                PPOINTL pptlIcon,
                                PVOID *pObjectArray,
                                PVOID pRecordParent,
                                ULONG NumRecords)

The self (M_WPObject *) parameter is the pointer to the WPObject class object.

The hwndCnr (HWND) parameter is the handle of the container window to insert objects into.

The pptlIcon (PPOINTL) parameter is the pointer to a POINTL structure specifying the coordinates for the position of the first object inserted.

The pObjectArray (PVOID *) parameter is the pointer to an array of object pointers. The objects in this array are to be inserted into the container.

The pRecordParent (PVOID) parameter is the parent record pointer. This parameter should be set to NULL if the records being inserted will not have a parent or if the Tree view is not supported.

The NumRecords (ULONG) parameter is the number of objects in the pObjectArray parameter.

The rc (BOOL) parameter is returned with one of the following values: