MultiColumn Listbox
-
Hi! I'm new at Visual C++, and i was trying to use a CListBox with multicolumn features, but i cannot find a way to include the column's labels. I guess this must be a easy task for most of you, but i'm really having dificulties in implementing this. Can anyone help me? Please... Thank you in advance
-
Hi! I'm new at Visual C++, and i was trying to use a CListBox with multicolumn features, but i cannot find a way to include the column's labels. I guess this must be a easy task for most of you, but i'm really having dificulties in implementing this. Can anyone help me? Please... Thank you in advance
Do you mean
CListBox
orCListCtrl
? If the former, then all the columns of a single row are inserted at a time by callingAddString
with a string where columns are separated by tab characters:m_list.AddString("Column 1\tColumn 2\tColumn 3");
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
-
Do you mean
CListBox
orCListCtrl
? If the former, then all the columns of a single row are inserted at a time by callingAddString
with a string where columns are separated by tab characters:m_list.AddString("Column 1\tColumn 2\tColumn 3");
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
Thank's Joaquín, i guess i'll use the CListCtrl once i need the headers to sort data, can you tell where to find some good examples how to use this object? Thank you
-
Thank's Joaquín, i guess i'll use the CListCtrl once i need the headers to sort data, can you tell where to find some good examples how to use this object? Thank you
Here at CP. For instance, Matt Weagle's article Using the List Control. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo