ListIcon custom gadgete with variable size larger images

Just starting out? Need help? Post your questions and find answers here.
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

ListIcon custom gadgete with variable size larger images

Post by DeanH »

I have been trying to develop a custom ListIcon gadget (Windows) that has two special features:

1. Each row can contain 2 or more physical rows of text. Every cell contains different text data.

2. The image (left side) can be up to 80 pixels tall. Each image is different and can be rectangular, either taller than wide or wider than tall or even square. They would be resized proportionally from the source files.

Using code I found on this forum I have been able to do #1 easily. I have also been able to produce larger images but they all come out the same width and height, which distorts the pictures (book covers). The image list function seems to require the same size for every image (see below). If the images are not exactly the same size as specified in the create image list function, they are not displayed. The control needs to hold several thousand rows with a dozen columns.

imgList = ImageList_Create_(W,H,#ILC_COLOR32, 0,#ItemCount)

Does anyone have or know of any code or tool that can offer this?
Thanks.