Link in an edit control
- Posted by Jonas Temple <jtemple at yhti.net> Nov 05, 2003
- 583 views
All, I'm wanting to imbed a link in a rich edit control (like a hyper-link in a browser window). I found the documentation at MSDN for using the message EM_SETCHARFORMAT with the CHARFORMAT2 structure. Subfield dwEffects allows you to specify CFE_LINK style. When the user clicks or the mouse hovers over text with this style a WM_NOTIFY message is sent (EN_LINK) to the parent control. I tried to work up an example but couldn't. Also didn't find any good examples on the net (yet). Anyone ever try this and might have an example? CHARFORMAT2 would also be a good addition to Win32Lib as it adds a few other "effects" that might be nice to use. Jonas