I have this piece of code and now I want to make a log system. It is intended that there is always a line when something happened, but how do I do that without the rest of the lines disappear devote?
How about saving all the lines within a container and draw the container to the window...
(I´m not sure, but I think there could be some flicker going on, when doing this - there is an solution to this in the MSDN for MFC-programs, but I don´t remember the link [it´s been a while])
Send a single line to the edit box could i do with the function SetWindowText(); but if I send a new line, the old disappeard. Thats not what I want. How to continue?
Yep... But as usual, programming isn´t just telling the computer what to do exactly...
You sometimes need to evolve the solution, and that is - in this case - the three-step-solution, geek01 suggested... (Or try another one)...
EDIT: for an Log-Window I suggest to make the Edit-Box read-only, so one is able to copy the text easily, but restrict writing access to it... (EM_SETREADONLY)...