views:

164

answers:

1

I find a way to get ListView's selected item full path. I do it in treeview by using this:

        temp = (HTREEITEM)SendDlgItemMessage(hWnd,ID_TREE,TVM_GETNEXTITEM,TVGN_PARENT,(LPARAM)temp);

But I don't find familiar method in listview controls. THanks for reading this and I w8 for your answers :)

A: 

Use the LVM_GETNEXTITEM message, specifying LVNI_SELECTED as lParam, and then the LVM_GETITEMTEXT message.

Andreas Rejbrand
this method: you'll only get the logical path . But if you're in program files. How can you find the father of this folder is C:\ .
nXqd