Thread: List View Imagelist

  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);
    Last edited by bennyandthejets; 07-11-2003 at 08:53 PM.
    [email protected]
    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.
    [email protected]
    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, 10: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, 10:21 PM