Hi all . I wonder how i can select an item from a treeview(which is paltalk buddy list treeview) having the handle of treeview and position of item in treeview? could any one show me how i can write a CrossProcess function giving it the handle of treeview. Looking forward for replies.Thanks
Thanks for you reply chike. I am trying to do this in vb6. So could you explain to me how to get value of hItem and what is it? Is it treeview item index ?Furthermore, how to get ByVal code? and what is it ? I assume hWnd is the handle of treeview right ? could you look at this code and tell me if this is the right way to do it in VB6. I already know how to get handle of treeview and total treeview item.Looking forward for your reply.
hWnd: handle of treeview
code:?
hItem:?
TreeView_Select : is it value of selected item in our case buddy name ?
code: TVGN_CARET
hitem the value returned by TVM_GETNEXTITEM
Chick could you explain to me what TVM_GETNEXTITEM, TVGN_NEXT values are and method to get them ? Furthermore why hItem is 2 place in sendMesange ? I am just trying to learn how i could search for a name in treeview and highlight it and be happy if you explain to me the alghoritm for it.Thanks
hItem = SendMessage(hlwd, TVM_GETNEXTITEM, TVGN_NEXT, hItem)
same loop as in the excample with massages instead of macros.
There is a small loop I once wrote.
http://www.imfiles.com/topic/paltalk-buddy-list/
Just replace the macros with TVM_ messages and use TVM_SELECTITEM to select the item you want.