Solved

listbox with more lines in each item

Posted on 1998-09-05
4
156 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

21 Experts available now in Live!

Get 1:1 Help Now