10-18-2007, 08:55 AM
Ok my problem is that I have made a dialog and im using some of the above code to 'out' into a read only id (richedit) its some what like the out in QM, the problem is that id has a limit to how much text it can hold, that is fine with me but i would like to delete old outs that are not needed anymore so it doesnt reach the end of its limit.
This is the code I am using to out to the id
function str's
int hwnd=id(5 "DlG")
s+"[]"
SendMessage(hwnd EM_SETSEL -2 -2)
SendMessage(hwnd EM_REPLACESEL 0 s)
I would like to add something that says if lines >100 delete top line first line.