I am developing a chat application in win32. Currently, I dynamically allocate memory for advanced editing of controls, add a new line, and set new text using SetWindowText.
When a message arrives with certain keywords, the application colors the line and adds it to the chat window. Everything is fine. The problem occurs when you receive the following message - any previous formatting is lost!
How to solve this problem?
source
share