Append text to memo using Win API
问题 I'm trying to append text lines with this code SendMessage(Form1.log.Handle, WM_SETTEXT, 0, Integer(PChar(textLog))); // textLog are some lines eg 'Program started at xxx' etc but it doesnt append, just set new text 回答1: WM_SETTEXT will replace the entire content; either read the current content, append your new text & set the lot or ensure the caret is at the point you wish to append to and add the new text with EM_REPLACESEL . 回答2: It is recommended that you do not use EM_SETSEL or EM