Newb here and i have a quick question...
How do you add Text into an edit box?
I lloked around and found a similar thread and i tried the solution but didnt work. heres sample

invoke szMultiCat,1,ADDR buffer,ADDR textadd
invoke SetWindowText,hwndEdit,ADDR buffer

buffer is what the user has currently typed in the edit box
textadd is the text i want to add.
Suggestions would be appreciated 8)
Posted on 2004-09-26 00:59:00 by w32ASMn00b
Do you mean you want to append to the text already present in the edit? Or just put text into the edit?
Posted on 2004-09-26 02:22:11 by roticv
1. EM_SETSEL: Set Selected Range.
2. EM_REPLACESEL: Replace it.

invoke SendMessage, hEdit, EM_SETSEL, iStart, iEnd ; i > Max is last.
invoke SendMessage, hEdit, EM_REPLACESEL, 0, addr zStr
Posted on 2004-09-26 04:44:33 by Kestrel
Posted on 2004-09-26 08:06:39 by Dom
Ahhh, got it! :lol: Thanks for the help guys :wink:
Posted on 2004-09-26 15:07:48 by w32ASMn00b