[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

listbox with more lines in each item

Posted on 1998-09-05
4
Medium Priority
?
164 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

656 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