ZeeImage Control Message

ZIM_LOADIMAGE


ZIM_LOADIMAGE

An application sends a ZIM_LOADIMAGE to load an image from a file into the ZeeImage image list

ZIM_LOADIMAGE
wParam = (WPARAM)(int) iSlot;           //slot or index of the image control
lParam = (LPARAM)(char*) filename;      //LPSTR null-terminated string holding the path and filename of the image

Parameters

iSlot
The value of wParam. The index of the image list to load the image into.

filename
The value of lParam. The filename of the image to load into the image list

Return Values

This message does not return a value.

Example


SendMessage(himage,ZIM_LOADIMAGE,5,(LPARAM)".\\Images\\image001.png");

Note:

Will silently fail if the specified slot is greater than the number of slots in the image list.

Each ZeeImage control can hold up to 256 images. These are indexed 0..255 or slot 0 to slot 255.

If an image has already been loaded into the specified slot, it will be overwritten and replaced by the specified image in this message. The control handles the DeleteObject((HBITMAP)) for you.

The ZeeImage control uses the GDI+ Windows library so it will load most any image file format.

Copyright © 2020 by David Hillard