Microsoft Imagelist Control 6.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Back
Top