Click to See Complete Forum and Search --> : CImageList: does it require DIB sections?


May 26th, 1999, 01:44 PM
Does CImageList require that its component bitmaps are DIB sections? Right now I am trying to display a set of program-generated 12-bit images in a CListCtrl, but all I get right now are pitch black boxes. All I am doing right now is using CreateBitmap() and SetBitmapBits() to create a DDB with my array data. However, I just realized that I haven't specified any sort of palette (I want the images to be displayed in shades of gray), so I'm guessing that I have to add bitmaps that are DIB sections because they contain their own palette information.

Is this correct? How would I go about solving this problem?

Thank you!

-Andrew Y.