简体   繁体   中英

Get the path of selected item in ListView - Win32 API

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 :)

使用LVM_GETNEXTITEM消息,将LVNI_SELECTED指定为lParam,然后使用LVM_GETITEMTEXT消息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM