NO

Author Topic: ImageList_DrawEx or Imagelist  (Read 4512 times)

Tino

  • Guest
ImageList_DrawEx or Imagelist
« 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: ImageList_DrawEx or Imagelist
« Reply #1 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)
/Pelle

Tino

  • Guest
Re: ImageList_DrawEx or Imagelist
« Reply #2 on: January 31, 2008, 02:08:41 PM »
Hello Pelle,

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

[Corrected Sample attached]

Tino