c++visual-studio-2010mfcclistbox

Can I add multiple columns in MFC CListBox?


I have a dialog with a CListBox .I have to add 3 Columns in this list box.
Is there any way to have several different columns in CListBox ?
Or Can CListCtrl help in this regard?


Solution

  • The windows explorer file view (right side) is list control, fonts in Fonts dialog box is listbox.

    Source : http://forums.codeguru.com/showthread.php?358739-CListBox-and-CListCtrl.

    use CListCtrl::InsertColumn to add new column.