?
Solved

How do you get a CListBox to wrap?

Posted on 2011-02-28
3
Medium Priority
?
501 Views
Last Modified: 2012-05-11
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!!!
0
Comment
Question by:tmitch68
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 35003534
0
 
LVL 35

Accepted Solution

by:
sarabande earned 1000 total points
ID: 35004667
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
 

Assisted Solution

by:cehopkins
cehopkins earned 1000 total points
ID: 35010602
You could use a CRichEdit box with the Multiline property set to True.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question