when i use SetFocus() to set focus to the EditBox, i find the cursor is just before the first character ,but i want to set it to the end of string,how?
Posted on 2005-01-10 04:13:17 by bailao
Hi bailao


Maybe it's ES_RIGHT you want to use.



Regards,


The SharK
Posted on 2005-01-10 05:26:09 by The SharK
Send EM_SETSEL to the editbox with both wParam and lParam set to -1.

Mirno
Posted on 2005-01-10 05:36:43 by Mirno
i get it

i use this:

invoke Setfocus,hEditBox
invoke GetWindowText,hEditBox,addr buffer,128
invoke lstrlen,addr buffer
invoke SendMessage,hEditBox,EM_SETSEL,eax,0

thanks
Posted on 2005-01-11 04:06:52 by bailao