|
Question : Hide column in CListCtrl
|
|
Hi, Does anyone know how to hide a column in a CListCtrl ? (Not by making the width of the column equal zero...)
thanks, Iris
|
|
Answer : Hide column in CListCtrl
|
|
sorry, u dont even need to derive from CListCtrl just create one less columns and insert the items accordingly !!
4 example:
//cleaning the list control m_listCtrl.DeleteAllItems() while(m_listCtrl.DeleteColumn(0)) ;
now build it all over again without the column that u wanna hide:
for(int i=0; i{ if(i == columnToHide) //or soething like that continue; . .
}
cheers
|
|
|
|