Jump to content
Sign in to follow this  

Icon on a subitem of a listview (no transparent background)

Recommended Posts

An example I whipped up:

#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
#include <GuiImageList.au3>

GUICreate("gui", 679, 343, 192, 124)
Global $list = GUICtrlCreateListView("column1|column2|colum3", 8, 8, 610, 259)
_GUICtrlListView_SetExtendedListViewStyle($list, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES))

Global $hImage = _GUIImageList_Create(16, 16, 5, 1)
_GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 22)
_GUICtrlListView_SetImageList($list, $hImage, 1)

GUICtrlCreateListViewItem("text|icon|more text", $list)
GUICtrlSetBkColor(-1, 0xC3A3FC)

_GUICtrlListView_SetColumnWidth($list, 0, 200)
_GUICtrlListView_SetColumnWidth($list, 1, 200)
_GUICtrlListView_SetColumnWidth($list, 2, 200)
_GUICtrlListView_SetItemImage($list, 0, 0, 1)



It just doesn't look right. Is there any way to make the Icon have a transparent (see-through) background? That way it would blend in with the background color of the row.

I hope there's a simple solution. I couldn't find a way to do this.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...