Pelles C forum

C language => Windows questions => Topic started by: Tino on January 30, 2008, 05:22:50 PM

Title: ImageList_DrawEx or Imagelist
Post by: Tino on January 30, 2008, 05:22:50 PM
Hello Forum,

I´m really stuck in Drawing Bitmaps which are placed an Imagelist.

I reached to paint them ..
.. but the result is always monochrom
( or somehow reduced to black and white )


I changed every parameter i found - but results the same.

So, how to get it drawn colored ?

[Project Attached]

Thanks,
Tino
Title: Re: ImageList_DrawEx or Imagelist
Post by: Pelle on January 31, 2008, 01:08:03 PM
change
Code: [Select]
tmp = CreateCompatibleBitmap( hdc, ...to
Code: [Select]
tmp = CreateCompatibleBitmap( GetDC(hWnd), ...otherwise you get a monochrome bitmap (see Microsoft docs)
Title: Re: ImageList_DrawEx or Imagelist
Post by: Tino on January 31, 2008, 02:08:41 PM
Hello Pelle,

Large Thanks to you
i didn´t thought that far...

[Corrected Sample attached]

Tino