Thanks again
The following code is short and effective, but I don't know why
I can't understand the following code. Where can I find this explanation?
The following code is short and effective, but I don't know why

#sub SetCurLine2
function h str's
int cursorPos = SendMessage(h EM_CHARFROMPOS 0 -1)
int cpos = cursorPos&0xFFFF
int line = cursorPos>>16
int lineStart = SendMessage(h EM_LINEINDEX line 0)
SendMessage(h EM_SETSEL lineStart cpos)
_s.getsel
_s+ s
SendMessageW h EM_REPLACESEL 1 @_sI can't understand the following code. Where can I find this explanation?
