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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top