When we have a RichEdit control and send it an EM_AUTOURLDETECT
message with WPARAM set to TRUE, it nicely hightlights the detected URLs and sends the EN_LINK
notifications.
But it does this only for text that is entered into the control. I haven't found the way to do it for text that's loaded into the control with SetWindowText
or EM_STREAMIN
.
Please help! Thanks
Upd: I've created a test application from scratch and it works fine there. I think the problem might be that I have superclassed the control, that is, created a new window class and just use the window procedure of the original class. I'm gonna try subclassing the control instead..