News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how to modify a item string(listbox)

Started by Tam, January 27, 2008, 02:18:59 PM

Previous topic - Next topic

Tam

"LB_GETTEXT" can get a listbox item string, but how to set it? I can't find a message like "LB_SETTEXT" or "LB_SETITEMTEXT" in MSDN.

in vb, I can do it like this:
List1.List(0) = "I can modify it"

but in sdk, how ?

thanks!

Jimg

afaik you have to lb_deletestring and lb_addstring.

ToutEnMasm

Hello,
You have to make a choice between further items in the listbox.
LB_GETTEXT for the specified selection
LB_GETCURSEL to know the selected item
LB_SETSEL  to select the index


jj2007

First send LB_DELETESTRING, then LB_INSERTSTRING. No other option, sorry...