muma0016
asked on
Multicolumn CListBox
Hello,
I want create a CListBox with 4 columns and I want to use the proportional font "MS Sans Serif".
I'm a little bit confused how to manage this.
I know of LBS_MULTICOLUMN and SetColumnWidth, LBS_USETABSTOPS and SetTabSTops but I need
an example to create the ListBox and fill with data.
I give 200 points for you and hope to get a GOOD example
that is running !!!
Thanks for any help.
I want create a CListBox with 4 columns and I want to use the proportional font "MS Sans Serif".
I'm a little bit confused how to manage this.
I know of LBS_MULTICOLUMN and SetColumnWidth, LBS_USETABSTOPS and SetTabSTops but I need
an example to create the ListBox and fill with data.
I give 200 points for you and hope to get a GOOD example
that is running !!!
Thanks for any help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
// array of tab stops in dialog units
//
int iTabs[] = {40, 80, 120};
// set the tab stops
//
m_listBox.SetTabStops(size
// add strings, tab separated
//
m_listBox.AddString("Colum
m_listBox.AddString("X\tX\
Voila, columns!!!