Sign in to follow this  
Followers 0
Reekod

GUICtrlSetImage vs _GUICtrlListView_SetImageList

2 posts in this topic

#1 ·  Posted (edited)

Before i used that :

GUICtrlSetImage(-1, "shell32.dll", 269)

Is someone know how to write the same thing with this new function :

_GUICtrlListView_SetImageList

Thx

the solution mean to be in this way

$hImage = _GUIImageList_Create(18, 18, 5, 3)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -7)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -12)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -3)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -4)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -5)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -6)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -9)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -10)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", -11)
    _GUICtrlListView_SetImageList($hListView, $hImage, 1)
Edited by Reekod

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Just replace ImageList portion of code in helpfile under _GUICtrlListView_SetImageList() with your code for ImageList creation.

Edited by ahmet

Share this post


Link to post
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
Sign in to follow this  
Followers 0