Page 1 of 1

Counting columns in a ListIcon gadget.

Posted: Tue Sep 20, 2005 9:39 pm
by srod
Code updated For 5.20+

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)