List View Imagelist

This is a discussion on List View Imagelist within the Windows Programming forums, part of the Platform Specific Boards category; I'm not sure if I'm doing the right thing here. I've created an image list, assigned an icon to it, ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    List View Imagelist

    I'm not sure if I'm doing the right thing here. I've created an image list, assigned an icon to it, and assigned it to a list view control. The style is LVS_ICON, and the icon sizes are 32 * 32. The output is not perfect though. There are black lines along the bottom and right edges of the icon. I've attached a .bmp of the offending icon.

    Code:
    HIMAGELIST hil;
    
    hil=ImageList_Create(32,32,ILC_COLOR32|ILC_MASK,1,1);
    ImageList_AddIcon(hil,LoadIcon(NULL,IDI_APPLICATION));
    SendMessage(hList,LVM_SETIMAGELIST,(WPARAM)LVSIL_NORMAL,(LPARAM)hil);
    Attached Images Attached Images  
    Last edited by bennyandthejets; 07-11-2003 at 09:53 PM.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    How the hell do you format the code so that it doesn't do that?!?! It's so fustrating! Whenever I post code, it always wraps around at random points.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 11:03 AM
  2. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  3. List View problem
    By pinkcheese in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2003, 02:09 PM
  4. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 11:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21