Thread: List-View / Image Lists

  1. #1
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788

    List-View / Image Lists

    I would like to populate a listview with all the files,drives,folders of my pc.

    How would one extract the icons of a directory (folder/file icons)?
    Also, should I being using the shell extensions for this? If so, how would I go about doing it?

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    I don't know if you can get them from the system but I got my folder icons from the VC++ icon library and just included them in my resources.

  3. #3
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    Is there perhaps a function like GetDlgDirList() for a ListView?

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    The way that I personally have done these directory trees is with the common control "TREEVIEW" and images from bitmaps such as the folder icons from the VC++ collection. I then filled the tree by walking the directories. As far as I know there isn't a common control that just handles the file system and icons. The treeview is generalized.

    files have icons associated with them. folders don't. I think. I just used a standard open and closed folder icon.

  5. #5
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    Thanx, I think i'll do the same.

  6. #6
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    There is LB_DIR for listboxes.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. help! Placement of nodes in a Linked List
    By lostmyshadow in forum C Programming
    Replies: 6
    Last Post: 12-17-2007, 01:21 PM
  3. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. compiler build error
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 10:16 AM