Links in RichEdit

Started by
1 comment, last by Lord Faron 17 years, 1 month ago
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?
if (time() == $) { $ = 0; }
Advertisement
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().
if (time() == $) { $ = 0; }

This topic is closed to new replies.

Advertisement