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
Solved

Change the Text of a ListBox Item?

Posted on 2007-11-25
4
1,150 Views
Last Modified: 2013-12-03
HI,

In my Listbox I have from time to time a changed value. Is it possible to change the text of a ListBox Item, like index 2 by code?

Ingo
0
Comment
Question by:Ocrana
  • 3
4 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20345853
are you working with MFC's CListView? could you post some code where to make modifications?
0
 

Author Comment

by:Ocrana
ID: 20345888
Hi, no I use CListBox
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20345981
Unfortunately, there is not such feature with regular listboxes. You have 2 choices.
- Delete and insert an item again
- Use owner draw to change the text whenever you want
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20347241
Do you have choosen an alternative?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to split this in C++ 4 106
What are the big features of MVC5? 4 91
Need more details 5 167
VIDEO DATASOURCE Control Resize issue 2 30
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

839 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