Solved

How do you get a CListBox to wrap?

Posted on 2011-02-28
3
490 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
3 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 35003534
0
 
LVL 32

Accepted Solution

by:
sarabande earned 250 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 250 total points
ID: 35010602
You could use a CRichEdit box with the Multiline property set to True.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Setting nameservers after res_init fails doing res_query 2 73
sumDigits  challenge 7 60
C++ question 3 46
word0 challenge 3 56
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now