Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3605 closed Bug (Fixed)

the function _GUICtrlListView_SetBkImage() does not accept control ID

Reported by: Alofa <alofa.script@…> Owned by: Jpm
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)
; ...

Change History (4)

comment:1 Changed 7 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 7 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 7 years ago by Jpm

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

Fixed by revision [11997] in version: 3.3.15.1

comment:4 Changed 7 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

Author


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

 
Note: See TracTickets for help on using tickets.