Results 1 to 3 of 3

Thread: ListView's

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Lisbon, Portugal
    Posts
    2

    Question ListView's

    How can i assign the system extension type to a new item with that extension on a listview?

    And by the way the same thing for icon's


    Thkx
    Luis Gui

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    idunu

    You mean, like, add an item ".ext" to the listview, with the same icon that ".ext" files have in the file explorer?
    In that case you can send some messages, like LVM_INSERTITEM, and set the iImage member of LV_ITEM to the index of the icon which you can add to the ImageList...

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Lisbon, Portugal
    Posts
    2

    Cool



    Thnkx any way,but i've already found what i wanted.

    That was the API SHGetFileInfo. It contains the String for a file's extension(*.ext).

    Example -> For *.EXE the String in English is Application, in Portuguese is Aplicação.

    I get the system string for that Extension.


    Now I'm trying to get system icon for file's extension or Directory.

    Do you now how?
    Luis Gui

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