我
我爱PASCAL
Unregistered / Unconfirmed
GUEST, unregistred user!
替换所选文本<br>var<br> num: integer;<br> buffer: array[1..1024] of char;<br> str: string;<br>begin<br> num := SendMessage(handle, EM_GETSELTEXT, 0, longint(@buffer));<br> str := string(buffer);<br> showmessage(str );<br> str := str + str;<br> SendMessage(handle, EM_REPLACESEL, 1, longint(@str));<br>end;<br>为什么不成功