CString alignment CListBox
Posted on 2001-06-07
I wanted a multicolumn listbox, but then
discovered that you can't have vertical scrolling in
a multicolomn listbox. Thought about using a list
control but I need to have drag and drop (CDragListBox)
inside the listbox and there doesn't appear to be a
CDragListCtrl class. Or is there?
So finally thought I would align the columns, in a
normal single column listbox, by using tabs.
CString myTab = "\t";
str3 = str1 + myTab + str2;
Although it works is it right or should I be
using SetTabStop at the outset to set the tabs?
Although the text appears on a single line is there
any way to allow the user to edit the text in each