Jump to content

Image In A Subitem Listview, Please


 Share

Recommended Posts

I wanna insert an image.JPG in my listview item, i have been looking a lot but nothing.

$List_1 =   GUICtrlCreateListView("one|two|three|IMAGEPLEASE", 30, 60, 320, 150) 

GUICtrlSendMsg($List_1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT)
GUICtrlSendMsg($List_1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_CHECKBOXES, $LVS_EX_CHECKBOXES)
GUICtrlSendMsg($List_1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_SUBITEMIMAGES, $LVS_EX_SUBITEMIMAGES)


func DibujaTablaFiles($inifile)
            
    _GUICtrlListViewDeleteAllItems($List_1)
    $var = IniReadSectionNames($inifile)
    For $a = 1 To $var[0]
        $ProgData = IniReadSection ( $inifile, $var[$a] )
        GUICtrlCreateListViewItem("|"& $ProgData[1][1] & "|" & $ProgData[2][1] & "|" & $ProgData[3][1] & "|" & $ProgData[4][1] ,$List_Progs)
    Next
    
    Return $var
EndFunc
Edited by Libre

I love this Game :p----------------------Freeware Multilange support or Translate your scripts----------------------aNyBoDy KnOwS WhY A LiGhT iN My KeYbOaRd iS aLlWaIs BlInKiNg !?Who is "General Failure" and what is he doing in my hard disk !!!!!?

Link to comment
Share on other sites

  • 4 weeks later...

I wanna insert an image.JPG in my listview item, i have been looking a lot but nothing.

Hm, the same here. I looked into the _GuiListView UDF and ended somewhere in the _GUICtrlListViewSetItemText Function. Looked up Google and found some C source saying something about $LVIF_IMAGE (0x2) to be used for the dll call, but thats where I'm stuck. Any pro around willing to take a look? Thanks...

This post will be edited again by Polyphem: Tomorrow, 11:55 AM
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...