// JP opened flex table

Click to See Complete Forum and Search --> : [RESOLVED] Deleting ALL columns in ListView


D4rkness
June 25th, 2008, 09:28 AM
Hello,

I'm trying to delete all columns from an List Control.... I want to get the number/count of the current columns in the listView so i can loop and send the LVM_DELETECOLUMN message to delete each column.

Any ideas?


Thanks in Advance!

egawtry
June 25th, 2008, 10:07 AM
Do a GetHeaderCtrl(), then from that do a GetItemCount().

-Erik

VladimirF
June 25th, 2008, 10:22 AM
Any ideas?while(::SendMessage(hWndList, LVM_DELETECOLUMN, 0, 0))
;

D4rkness
June 25th, 2008, 04:42 PM
Problem resolved, Thanks.

//JP added flex table