Grrrr... this took me a while to figure out!
I'd be interested to know if there is a more direct way rather than having to query the ListIcon's header control.
Code: Select all
;The following counts the number of columns in a ListIcon.
#LVM_GETHEADER = #LVM_FIRST+31
debug sendmessage_(SendMessage_(GadgetID(#MyListIconGadget),#LVM_GETHEADER,0,0), #HDM_GETITEMCOUNT,0,0)