ImageList_DrawEx or Imagelist

Started by Tino, January 30, 2008, 05:22:50 PM

Previous topic - Next topic

Tino

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

Pelle

change
tmp = CreateCompatibleBitmap( hdc, ...
to
tmp = CreateCompatibleBitmap( GetDC(hWnd), ...
otherwise you get a monochrome bitmap (see Microsoft docs)
/Pelle

Tino

Hello Pelle,

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

[Corrected Sample attached]

Tino