News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RichEdit highlight link

Started by remus2k, January 15, 2011, 01:10:07 PM

Previous topic - Next topic

remus2k

Hi

I try to a highlight link on a RichEdit control.

I use  EM_AUTOURLDETECT for links with mailto:,http:....

Works this without the mailto: only with remus2k@xxxx.com?

Thanks

disintx

EM_AUTOURLDETECT is built for URLS only, an email is not a URL so RichEdit cannot detect it (http://msdn.microsoft.com/en-us/library/bb787991%28VS.85%29.aspx - link to MSDN on this message).

As far as I know there is no built-in message for email detection; you will have to write some code that prevents the client area from drawing, search through and find *@*.* and then change style, and re-enable drawing.