You need to handle the EN_CHANGED notification in your rich-edit control and apply the formatting each time the text is changed.