Listbox line change 
Author Message
 Listbox line change

How do I change an existing line of a listbox?

I can only seem to find LB_ADDSTRING, LB_INSERTSTRING, LB_DELETESTRING
and LB_RESETCONTENT.

I would assume by this, that if I have 10 lines and wanted to change
line 4, I need to do an LB_DELETESTRING on that line and then do an
LB_INSERTSTRING.

Is this right?

Thanks,

Tom



Mon, 21 Feb 2005 03:50:15 GMT  
 Listbox line change
        Yes.

--
Cheers
Check Abdoul
----------------


Quote:
> How do I change an existing line of a listbox?

> I can only seem to find LB_ADDSTRING, LB_INSERTSTRING, LB_DELETESTRING
> and LB_RESETCONTENT.

> I would assume by this, that if I have 10 lines and wanted to change
> line 4, I need to do an LB_DELETESTRING on that line and then do an
> LB_INSERTSTRING.

> Is this right?

> Thanks,

> Tom



Mon, 21 Feb 2005 04:05:27 GMT  
 Listbox line change
Yes, but before deleting the item, you'd probably want to send a LB_GETTEXT
message.  You're on the right track, though.


Quote:
> How do I change an existing line of a listbox?

> I can only seem to find LB_ADDSTRING, LB_INSERTSTRING, LB_DELETESTRING
> and LB_RESETCONTENT.

> I would assume by this, that if I have 10 lines and wanted to change
> line 4, I need to do an LB_DELETESTRING on that line and then do an
> LB_INSERTSTRING.

> Is this right?

> Thanks,

> Tom



Mon, 21 Feb 2005 04:22:12 GMT  
 Listbox line change

Quote:

> Yes, but before deleting the item, you'd probably want to send a LB_GETTEXT
> message.  You're on the right track, though.

Why?
Quote:



>>How do I change an existing line of a listbox?

>>I can only seem to find LB_ADDSTRING, LB_INSERTSTRING, LB_DELETESTRING
>>and LB_RESETCONTENT.

>>I would assume by this, that if I have 10 lines and wanted to change
>>line 4, I need to do an LB_DELETESTRING on that line and then do an
>>LB_INSERTSTRING.

>>Is this right?

>>Thanks,

>>Tom



Tue, 22 Feb 2005 08:16:00 GMT  
 Listbox line change
To get the text to be changed.


Quote:
> Why?



Tue, 22 Feb 2005 20:27:45 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Delete first line of MultiLineEdit/ListBox and scroll up

2. Delete first line of MultiLineEdit/ListBox and scroll up

3. Textcolors of individual lines in a listbox

4. Listbox with colored lines

5. Last line of listbox

6. Changing Item Height on a ListBox at Selection

7. Listbox event when selected item changes

8. Change the colour of a listbox at run time

9. Listbox: change font color

10. Change text color in Listbox

11. Changing the Background Colour in a Listbox

12. Changing ListBox Font - How ?

 

 
Powered by phpBB® Forum Software