Link in an edit control

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu