简体   繁体   中英

How to use LVM_GETITEM (iSubItem?)

I'm trying to use LVM_GETITEM to get info about an item in a ListView. The message needs 2 parameters to work: iItem and iSubItem among other things. It seems clear that iItem is the index of the desired item in the ListView, but I am unclear what to use for iSubItem .

I've been using 0 and it seems to work just fine for me. Still, I'm curious, what is iSubItem and what is it used for? The documentation is not very enlightening.

iSubItem refers to columns when the listview is in "details" mode ( LVS_REPORT ). The first (primary) column is subitem 0, the second is 1 and so on.

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