I have two questions regarding a multiline read only edit controls created with Win API. Is there a way to make it so the user cannot change the Position of the cursor with the edit control? What is happening is the user is able to click in the read only edit and move the cursor and select text. Is there a style or way to avoid this?
Second, In my multiline edit control. When I am adding text I have been using EM_REPLACESEL. This way I can add my text to the end of the edit control. When I want to go to the next line, I have been using sprintf like this:
What is happening though, is that occassionally it is adding little squares after the text, instead of the new line. Is there an easier way to do this?Code:sprintf(Message, "%s\r\n", Text);
By the way, I am not using a dialog. Thanks.