Solved

listbox with more lines in each item

Posted on 1998-09-05
4
158 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
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
prasanth earned 100 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows 10 how make picture as desktop background 2 62
matchUp  challenge 9 105
Detect file exist or not 3 153
x-bar in Google Sheets 2 50
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

815 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

8 Experts available now in Live!

Get 1:1 Help Now