Counting columns in a ListIcon gadget.

Share your advanced PureBasic knowledge/code with the community.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Counting columns in a ListIcon gadget.

Post 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)
I may look like a mule, but I'm not a complete ass.