Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3605 closed Bug (Fixed)

the function _GUICtrlListView_SetBkImage() does not accept control ID

Reported by: Alofa <alofa.script@…> Owned by: J-Paul Mesnage
Milestone: 3.3.15.1 Component: AutoIt
Version: 3.3.14.3 Severity: None
Keywords: _GUICtrlListView_SetBkImage Cc:

Description

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 by J-Paul Mesnage, 8 years ago

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 by Alofa <alofa.script@…>, 8 years ago

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

comment:3 by J-Paul Mesnage, 8 years ago

Milestone: 3.3.15.1
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [11997] in version: 3.3.15.1

comment:4 by anonymous, 8 years ago

Спасибо.

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.