Yes I'm still here!
I was wondering how I can count the number of columns a list view has?
Can this be done any one?
According to the IWB Users Guide this is the way to do it:
Quotecount = CONTROLCMD( window | dialog, ID, @LVGETCOUNT)
Use this function to retrieve the total number of items in the list view control
But that only gives you how many lines in a list view, not how many columns a list view has.
Did not read your questiopn properly....
These two links should give you an idea how to do it:
Thanks every one!
Here is the answer:
uint hProgress = GETCONTROLHANDLE(WinIn,LV) 'Handle to the List view control.
UINT HDR=SendMessage(hProgress,LVM_GETHEADER,0,0) 'Handle to the List view header.
INT Columns=SendMessage(HDR,HDM_GETITEMCOUNT,0,0) 'Number of columns in the List view.