CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    26

    loading bitmaps in an imagelist

    Hi,
    I have created a listview with pure win32 api(No MFC) , using CreateWindowEx. I have set a backpicture for this listview using LVM_SETBKIMAGE. I now want to load a few bitmaps from a file into the imagelist associated with this listview.

    THE PROBLEM:
    The bitmap has a lot of gray color(RGB(128,128,128)). Is there any way i can replace this color with a transparent color while loading the bitmap as an icon to the imagelist.

    Any help will be appreciated. Thanks.
    P.S. I am open to any alternate techniques to solve this problem.

  2. #2
    Join Date
    Jan 2008
    Posts
    48

    Re: loading bitmaps in an imagelist

    For Win32 api, always ask on Adv. win32 api ng
    news://194.177.96.26/comp.os.ms-wind...ogrammer.win32
    where this is a FAQ since 1995 (IL from Win9x)...

  3. #3
    Join Date
    Apr 2008
    Posts
    26

    Re: loading bitmaps in an imagelist

    I am sorry to say, i am not too sure what i should do.Could you tell me what exactly that group is and whether i should post my question to that group.

    Thanks in advance.

  4. #4
    Join Date
    Apr 1999
    Posts
    3,585

    Re: loading bitmaps in an imagelist

    Please post the code you are using to create the image list.
    Gort...Klaatu, Barada Nikto!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured