How do you get a CListBox to wrap?


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!!!
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

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).

Paul JacksonSoftware EngineerCommented:
cehopkinsConnect With a Mentor Commented:
You could use a CRichEdit box with the Multiline property set to True.
All Courses

From novice to tech pro — start learning today.