Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3605 closed Bug (Fixed)

the function _GUICtrlListView_SetBkImage() does not accept control ID

Reported by: Alofa <alofa.script@…> Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: _GUICtrlListView_SetBkImage Cc:


The help for the function _GUICtrlListView_SetBkImage() in the description of the first parameter is as follows:
"$hWnd - Control ID/Handle to the control",
but in fact the function will not work with Control ID since the following line is present inside it:

Func _GUICtrlListView_SetBkImage($hWnd, $sURL = "", $iStyle = 0, $iXOffset = 0, $iYOffset = 0)
; ...
	If Not IsHWnd($hWnd) Then Return SetError($LV_ERR, $LV_ERR, False)
; ...

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by Jpm

If you change this "If Not" line by

If Not IsHWnd($hWnd) Then GUICtrlGetHandle($hWnd)

does it work for you I don't have any script to verify
Thanks for the help

comment:2 Changed 6 years ago by Alofa <alofa.script@…>

If completely remove this line, then the function will work fine with the control ID created using the GUICtrlCreateListView()

comment:3 Changed 6 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [11997] in version:

comment:4 Changed 6 years ago by anonymous


Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.