Microsoft Imagelist Control 6.0

D

danbug

I am trying to use the imagelist control to store pictures that I can use to
animate an image control on a form. I cannot figure out how to assign one of
the images in the imagelist to the image control.
Does anyone know how to do this?

Thanks in advance, danbug
 
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