Graphisoft®

Dialog ManagerVersion: 2.0

ListView::SetItemImage

Sets the image type and the image data of a list view item.

void SetItemImage (
    short               listItem,
    ImageType           imageType,
    const void *        imageData
);

Parameters

listItem
1-based index of the list view item to be modified, TopItem or BottomItem of Item type specifies the first or last item of the list view control. Use AllItems of Item type to modify all items.
imageType
The image type of the list view item. (Only types listed at imageData are accepted.)
imageData
The image data of the list view item depending on the imageType parameter.
imageType imageData
ListView::NoImage No image is defined for this item.
ListView::Icon
Macintosh only:
Icon, referenced with NSImage* cast to void*.
Windows only:
Icon, referenced with HICON cast to void*.
ListView::Picture
Macintosh only:
Picture, referenced with NSImage* cast to void*.
Windows only:
Picture, referenced with HBITMAP cast to void*.
Windows only:
ListView::DIBitmap

Device Independent Bitmap, referenced with BITMAPINFO* cast to void*.