lcrogers
asked on
Make three colums in the listbox and populate them.
How do I create a list box with three columns ant populate all three colums at once??? I am using MS c++ .Net 2003
I tried creating a Clistbox and using a Cstring format to populate it but the text in each column is not alined right.
I used:
CString txt;
int value1, value2;
txt.Format(%9s %6ds %7d ", txt1, value1,value2);
clist.AddString(txt);
Sample output:
J23.1 234 123
J12.0 129 349
J4 23 90
I tried creating a Clistbox and using a Cstring format to populate it but the text in each column is not alined right.
I used:
CString txt;
int value1, value2;
txt.Format(%9s %6ds %7d ", txt1, value1,value2);
clist.AddString(txt);
Sample output:
J23.1 234 123
J12.0 129 349
J4 23 90
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.