- po:Pointer to the IArrayModel interface object.
- pItems:Pointer to the items to be represented by the array model, or NULL if there are no items stored in the array. The memory occupied by the array of item pointers is managed by the array model, while the memory occupied by the items themselves would be managed by a customized memory freeing callback.
- nItems:Indicates the number if items stored in the array, or zero if the array is empty.
- nItemSize:The size, in bytes, of each array item. Each item in an array model occupies a fixed and equal amount of memory.
void IArrayModel_SetItems(IArrayModel *po, void *pItems, uint32 nItems, uint16 nItemSize);
The fields of the ListModelEvent will contain the following information:
pos: 0 oldSize: The number of items in the array model before calling IArrayModel_SetItems(). newSize: The number of items in the array model after calling IArrayModel_SetItems().