Set Image.Picture property to an item in a ImageList control

C

Craig Buchanan

I'd like to set an image's picture property to on of the images stored in an
imagelist control. Is this possible?

thanks,

craig Buchanan
 
S

Stephen Lebans

1) The ImageList control exposes a StdPicture object.

2) Convert the StdPic object to a DIB with the fStdPicToImageData
function here:
http://www.lebans.com/loadjpeggif.htm

3) Copy the results from the fStdPicToImageData function to the Image
control's PictureData prop.
(Code to do so is in the LoadJpegGif project above)


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Top