Whats the easiest and quickest way to append text to what is already in a Rich Edit control? When I open files, I open and read the file in another thread in 'chunks' of say, 1000 characters. Once each chunk has been read and stored in a temporary buffer, it needs to be appended to what has already been loaded in the edit control. Currently I am using a string to store all the text which has been loaded, and then using SetWindowText after reading each chunk to update the Edit control. But unfortunately this means the window flickers a lot and you can't scroll down and look through what has already been loaded.
Since I'm using a Rich Edit control, I'm thinking of using the EM_SETTEXTEX message, or setting the selection to the end of the text and replacing the text there to effectively append it to the end... Are there any easier ways/better alternatives?