07-08-2008, 08:48 PM
ok i know how to delete things in a list box in a dialog
but when i run the code
SendMessage a LB_DELETESTRING 0 b it always deletes the top thing in it
i would like it to delete what i have typed into the edit above it
here is the code i have so far but it still deletes the top thing in the list box
could someone please tell me what to change in that code so it will delete what i have typed in the edit
and also how when i select something in the list box, it puts what ever is selected into the edit
list box id = 3
edit id = 4
Thanks
but when i run the code
SendMessage a LB_DELETESTRING 0 b it always deletes the top thing in it
i would like it to delete what i have typed into the edit above it
here is the code i have so far but it still deletes the top thing in the list box
int a=id(3 "Dialog");;list box
str b.getwintext(id(4 "Dialog"));;type in edit what you want to delete
SendMessage a LB_DELETESTRING 0 b
could someone please tell me what to change in that code so it will delete what i have typed in the edit
and also how when i select something in the list box, it puts what ever is selected into the edit
list box id = 3
edit id = 4
Thanks