I am trying to achieve something similar to domain highlighting. I want part of my text in rich edit box to to be of different colour like we have in domain highlighting feature of IE.
Issue :
I know we have to first use EM_EXSETSEL
to select the required text and then apply EM_SETCHARFORMAT
.
EM_EXSETSEL
perform the required operation and required text get selected properly.
However , when i execute the EM_SETCHARFORMAT
, no change happens in the selected text.
Window is created using RICHEDIT_CLASS .
Any help would be appreciated.