How do you get a CListBox to wrap?

Hello,

I have a CListBox that I need to have the text wrap, instead of disappearing at the edge.

I've tried enabling the scrollbars, etc - nothing seems to work.

Seems like this should be pretty simple, but so far I just haven't had any luck.

Any suggestions would be GREATLY appreciated!!!
tmitch68Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
sarabandeConnect With a Mentor Commented:
a listbox cannot make automatic text wrap. you would need to do the wrap yourself and create additional lines when the text doesn't fit into a line.

you may try alternatively a multiline CEdit in read-only mode. it pretty good can wrapping. or i mean to remember that a multiline CStatic also wraps (but am not sure).

Sara
0
 
Paul JacksonSoftware EngineerCommented:
0
 
cehopkinsConnect With a Mentor Commented:
You could use a CRichEdit box with the Multiline property set to True.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.