schuc 0 Posted December 22, 2010 (edited) Hi All I'm making good progress so far, but have an issue here. I am adding files to my listview items from imageres.dll. When I looked at them in the resource explorer I have, it shows the icons with a white(maybe transparent) background. In my AutoIt listview, however, the icons have a BLACK background. I also tried getting and displaying the items background color (also included below) and that hasn't helped yet either. Any comments or suggestions are welcome! BTW, if anyone can suggest a good(free) resource explorer, I could really use an updated one. Thanks. expandcollapse popup#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GuiConstantsEx.au3> #include <WinAPI.au3> #include <GuiListView.au3> #include <GuiImageList.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Local Const $ICN_QUESTION = 99 Local Const $ICN_FAIL = 100 Local Const $ICN_SUCCESS = 101 _Main() Func _Main() Local $listview, $hImage Local $exStyles = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES) GUICreate("ImageList Create", 400, 300) $listview = GUICtrlCreateListView("", 2, 2, 394, 268, BitOR($LVS_SHOWSELALWAYS, $LVS_NOSORTHEADER, $LVS_REPORT)) _GUICtrlListView_SetExtendedListViewStyle($listview, $exStyles) GUISetState() ; Load images $hImage = _GUIImageList_Create() _GUIImageList_AddIcon($hImage, @SystemDir & "\imageres.dll", $ICN_QUESTION) _GUIImageList_AddIcon($hImage, @SystemDir & "\imageres.dll", $ICN_SUCCESS) _GUIImageList_AddIcon($hImage, @SystemDir & "\imageres.dll", $ICN_FAIL) _GUICtrlListView_SetImageList($listview, $hImage, 1) ; Add columns _GUICtrlListView_AddColumn($listview, "Items", 120) ; Add items _GUICtrlListView_AddItem($listview, "Item 1", 0) _GUICtrlListView_AddItem($listview, "Item 2", 1) _GUICtrlListView_AddItem($listview, "Item 3", 2) ; Show colors _GUICtrlListView_SetBkColor($listview, $CLR_WHITE) MsgBox(4160, "Information", "Back Color ....: " & _GUICtrlListView_GetBkColor($listview) & @LF & _ "Text Color ....: " & _GUICtrlListView_GetTextColor($listview) & @LF & _ "Text Back Color: " & _GUICtrlListView_GetTextBkColor($listview)) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main Edited December 22, 2010 by schuc Share this post Link to post Share on other sites
Yashied 240 Posted December 22, 2010 $hImage = _GUIImageList_Create(16, 16, 5, 1) My UDFs:iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL HelperAnimated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF LibraryAppropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignmentMore... Share this post Link to post Share on other sites
schuc 0 Posted December 22, 2010 $hImage = _GUIImageList_Create(16, 16, 5, 1) You nailed it! Thank you very much for your help. Share this post Link to post Share on other sites