What is the best way to append text to the end of a CEdit control?
I could use GetWindowText, add my new text to it, and then send it to SetWindowText. But that seems like too many steps.
I could use ReplaceSel, but that only works if the caret is at the end. If I do that, how do I set it to the end? I could do this:
m_textExplanation.SetSel(m_textExplanation.GetLineCount() * m_textExplanation.LineLength(), m_textExplanation.GetLineCount() * m_textExplanation.LineLength());
m_textExplanation.ReplaceSel("This is a test!\n");
But that seems like too much work, too.