Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » RTF rendering of hyperlinks? Collapse All
Subject Author Date
Lynn Allan Feb 24, 2007 - 8:31 AM

<alert comment="newbie" />

I am the developer of an MFC-based app that uses the "basic" CRichEditCtrl control in order to work with Win98-FE (using AfxInitRichEdit not AfxInitRichEdit2).

CRichEditCtrl works fine for "rtf rendering" things like bold, superscript, etc., but I’ve been unable to get the control to work with RTF hyperlinks. My impression is that the riched20.dll that comes with Win98, Win2000, and WinXp doesn’t have much in the way of capability for this (or perhaps I haven’t been able to figure it out ... wouldn’t be the first time <g>)

To illustrate, the WinXp WordPad app ignores the HYPERLINK in the following line, but Word-2003 actually works.
Line with {\field{\*\fldinst{HYPERLINK does_it_work }}{\fldrslt{\up8\ul [3]\up0 }}} hyperlink in it.

I looked over the information about Prof-UIS and Frame but I didn’t see an enhanced replacement for CRichEditCtrl ... perhaps I didn’t look hard enough.

Does the ProfUis product-line have an enhanced replacement for CRichEditCtrl that allows hyperlinks such as the sample line above?

Technical Support Feb 25, 2007 - 10:53 AM

You cannot solve this universally using the rich edit control. The easiest way would be to switch to IE web browser control so you can catch DHTML events in C++ code. If you prefer using the rich editor, then the hyperlinks should be implemented as OLE controls in it. Of course, the third way is to code your own text control with hyperlink support like in the following article: