TimRude Posted November 18, 2022 Share Posted November 18, 2022 I have a 250x250 png image that gets set as the centered background to a _GUICtrlListView when there is nothing to display in the listview. Currently, it gets displayed like this: If $iImages > 0 Then Local $sBGImageFile = "" ; no background image needed Else Local $sBGImageFile = @ScriptDir & "\NoPics.png" EndIf _GUICtrlListView_SetBkImage($hListView, $sBGImageFile, 0, 50, 50) Since I don't want an external file, I've added this image file to the resources (as number 301) using: #AutoIt3Wrapper_Res_File_Add=P:\PictureShow\NoPics.png, PNG, 301 And Resource Hacker shows that the image file was successfully added. How do I now assign this image from the resource to my listview background? (FWIW, I also have the same image as a BMP file if using a PNG file complicates things.) Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now