Get column count of listcontrol ?
-
How can I get the column count of a list control ? By functions is good as by message ! Ex: I can get the row count with GetItemCount(), LVM_GETITEMCOUNT, but there is no GetColumnCount, LVM_GETCOLUMNCOUNT ? Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
-
How can I get the column count of a list control ? By functions is good as by message ! Ex: I can get the row count with GetItemCount(), LVM_GETITEMCOUNT, but there is no GetColumnCount, LVM_GETCOLUMNCOUNT ? Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
Use List View Header Control GetItemCount to fetch the number of columns. CHeaderCtrl * pMyHeaderCtrl = MyListCtrl.GetHeaderCtrl(); ASSERT(pMyHeaderCtrl != NULL); int nColumns = pMyHeaderCtrl->GetItemCount(); Hth, Ramu