?
Solved

listbox with more lines in each item

Posted on 1998-09-05
4
Medium Priority
?
162 Views
Last Modified: 2013-11-20
Hi experts!
I would like to do a ListBox with several lines in each item, like this:
--------------------------
id:nnnn                  |
name: xxxxxxxxxxx        >  item 1
hobie: yyyyyyyyy         |    
--------------------------
id:nnnn                  |
name: xxxxxxxxxxx        >  item 2
hobie: yyyyyyyyy         |    
--------------------------

I tried using an AddString with "\n" and "\r" between strings, but it does not work. I have reviewed some multicolumn samples
but I need a diferent kind of viewing my data.

In addtion I new in MFC and need to do it on VC++ 1.52.
A big problem, don´t you think?
I would like some advice. please




0
Comment
Question by:jeeg
[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
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
prasanth earned 400 total points
ID: 1321770
You are going to have to do an owner drawn list box. Using "\n" or "\r" won't be of any help with AddString.

I'm pretty sure there is a owner-drawn listbox example that comes with VC1.5x called CTRLTEST that has a listbox which displays colored bars. Instead of filling in a colored box you will need to use DrawText or something similar to "paint" the lines for each item.
0
 

Author Comment

by:jeeg
ID: 1321771
prasanth
It Works!!!

Thank you very much...
All the best.

Hasta la vista AMIGO!!!
0
 
LVL 2

Expert Comment

by:prasanth
ID: 1321772
Great! Glad it helped.

If you "accept the answer" it'll be moved out of locked mode, so other people who might have the same problem can see the answer for a few points.
0
 

Author Comment

by:jeeg
ID: 1321773
thanks!!!
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

766 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