CRichEditCtrl problem with backspace-char from network
Posted on 2003-10-31
I am writing a dialogbased MFC console/telnet application. My problem is that when a backspace character (ascii 8) is arriving from some external source (network, serial...not the keyboard) the CRichEditCtrl class won´t print it out correctly. Instead it prints out a garbage character. Is there an easy way to handle this? I don´t want to check every arriving character, that would slow the application down to much.
void CRichEditCtrlTerminal::OnDataArrival(char *buffer, int size)
// Insert in rich edit
// Without checking every incoming char
ReplaceSel(buffer) // Generates garbage when backspace (ascii 8) arrives
This problem is driving me nuts, coz I have a gut feeling that it´s not a difficult problem.