Links in RichEdit
I'm trying to create an app with CRichEdit2 MFC class that displays text containing links. When I create some text in MS Word and open the RTF in my RichEdit window I get blue underlined text but no links. Can somebody help me with it?
You have to handle the linking part yourself, the RichEdit will tell you that there's a link there though. You need to listen for the EN_LINK notification, and then run the link (Via ShellExecute() normally).
Quote:Original post by Evil Steve
You have to handle the linking part yourself, the RichEdit will tell you that there's a link there though. You need to listen for the EN_LINK notification, and then run the link (Via ShellExecute() normally).
The problem is that RichEdit does not recognize links saved by MS Word. It treats them as blue underlined text. I read the RTF file and copy it's contents to RichEdit via SetWindowText().
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement