﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
739	_GUICtrlTreeView_SetInsertMark with $hItem=0 does not remove the insertion mark	j0linus	Gary	"Instead of removing the insertion mark, it is set above/below the first TreeviewItem. 

i think reason for this:
{{{
If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem)
}}}


so resolution would be:
{{{
If Not IsHWnd($hItem) AND $hItem<>0 Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem)
}}}

By the way i noticed that the check for a valid Treeview handle should be done before the check for a valid TreeItem handle.

Result:
{{{
If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)
If Not IsHWnd($hItem) AND $hItem<>0 Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem)
}}}

"	Bug	closed		Standard UDFs	3.2.13.12	None	Works For Me	GuiTreeView.au3	
