#include Once "window9.bi"

function GetParentItemTreeView(iGadget as Long , iItem as Integer) as INTEGER
   return Cast(Integer,SendMessage(gadgetid(iGadget),TVM_GETNEXTITEM,TVGN_PARENT,Cast(LPARAM,iItem)))
End Function