> I want to read pictures into an image list, which I've managed to
> accomplish, but when I try to scroll the listbox, which contains the
> thumbnails of the images, it doesn't redraw the image. Also, if i select

one
> of the thumbnails, it disappears.
>
> How do I prevent this behaviour? I assume it may have something to do with
> keeping track of the bitmaps in memory and the image list holding not the
> bitmap itself, but a pointer to the bitmap.
>
> I'm having trouble storing bitmaps as I'm creating a pBitmap by using the
>
> pBitmap = CBitmap::FromHandle(hBmp);
>
> Since you can't then store that pointer by using the assignment (=)
> operator, any ideas on where I'm going wrong?
>
> Thanks,
>
> Martin
>
>